package defpackage; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Parcelable; import android.os.RemoteException; import android.text.TextUtils; import android.util.Log; import cn.wps.moffice.OfficeApp; import cn.wps.moffice.common.cloud.history.datamodel.WpsHistoryRecord; import cn.wps.moffice.common.multi.bean.LabelRecord; import cn.wps.moffice.define.VersionManager; import cn.wps.moffice.extlibs.Qing3rdLoginConstants; import cn.wps.moffice.main.StartPublicActivity; import cn.wps.moffice.main.common.ServerParamsUtil; import cn.wps.moffice.main.local.appsetting.aboutsoft.WPSCdKey; import cn.wps.moffice_eng.R; import cn.wps.shareplay.message.Message; import cn.wps.util.JSONUtil; import com.mopub.nativeads.KS2SEventNative; import com.mopub.nativeads.MoPubNativeAdPositioning; import defpackage.cqp; import defpackage.egg; import defpackage.eip; import defpackage.fdc; import defpackage.fnc; import defpackage.fng; import defpackage.fnk; import defpackage.fnn; import defpackage.fno; import defpackage.fop; import defpackage.fow; import defpackage.hzq; import defpackage.lus; import defpackage.tbl; import defpackage.tet; import defpackage.tfv; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Vector; import org.apache.commons.httpclient.cookie.CookiePolicy; import org.eclipse.paho.client.mqttv3.internal.ClientDefaults; import org.json.JSONException; import org.json.JSONObject; /* renamed from: fox reason: default package */ public class fox extends fop.a implements sym { private static final String TAG = null; private static long gfp = 0; private teu gfA; protected HashMap<String, ebe> gfB = null; protected HashSet<ebe> gfC = null; protected HashSet<ebe> gfD = null; protected int gfE = 0; protected boolean gfF; private boolean gfG = false; private HashMap<String, fde> gfH = null; protected tas gfI = new tas() { /* class defpackage.fox.AnonymousClass38 */ @Override // defpackage.tas public final void a(final String str, final String str2, final tbc tbc) { fzc.bJM().y(new Runnable() { /* class defpackage.fox.AnonymousClass38.AnonymousClass1 */ public final void run() { float f; int i; try { if (tbc != null && tbc.state != 0) { if (tbc.state == 6 || tbc.state == 5 || tbc.state == 3 || tbc.state == 4) { fox.this.gfr.b(str, fox.this.gfI); fox.this.gfr.b(str2, fox.this.gfI); } Iterator<ebe> it = fox.this.gfD.iterator(); while (it.hasNext()) { ebe next = it.next(); try { if (tbc.state != 2) { f = 0.0f; } else if (tbc.bOe == 0 || tbc.gcF == 0) { f = 0.0f; } else if (tbc.bOe >= tbc.gcF) { f = 100.0f; } else { f = (((float) tbc.bOe) * 100.0f) / ((float) tbc.gcF); } String str = str; String str2 = str2; switch (tbc.state) { case 2: i = 100; break; case 3: i = 101; break; case 4: case 5: i = 102; break; case 6: i = 103; break; default: i = 0; break; } next.a(str, str2, i, (int) f); } catch (RemoteException e) { } } } } catch (Exception e2) { } } }); } }; protected tas gfJ = new tas() { /* class defpackage.fox.AnonymousClass39 */ static /* synthetic */ void a(AnonymousClass39 r8, String str, String str2, tbc tbc) { float f = 100.0f; if (tbc.state != 0) { if (6 == tbc.state) { fox.this.gfr.b(str, r8); fox.this.gfr.a(str2, r8); ebe remove = fox.this.gfB.remove(str); if (remove == null) { remove = fox.this.gfB.remove(str2); } if (remove != null) { fox.this.gfB.put(str2, remove); } ArrayList<fnb> rQ = fox.this.gfc.rQ(str); for (int i = 0; i < rQ.size(); i++) { rQ.get(i).id = str2; } fox.this.gfc.atJ(); Iterator<ebe> it = fox.this.gfC.iterator(); while (it.hasNext()) { try { it.next().a(str, str2, 103, 0); } catch (RemoteException e) { } } } else if (tbc.state == 3) { fox.this.bu(str, str2); } else if (tbc.state == 2) { if (tbc.bOe == 0 || tbc.gcF == 0) { f = 0.0f; } else if (tbc.bOe < tbc.gcF) { f = (100.0f * ((float) tbc.bOe)) / ((float) tbc.gcF); } fox.this.bt(str, str2).cy(f); } else if (tbc.state == 1) { fox.this.bt(str, str2).cy(0.0f); fox.this.bt(str, str2).cy(1.0f); } else if (tbc.state == 5) { fox.this.bt(str, str2).dispose(); fox.this.bu(str, str2); fox.this.a(str, str2, 102, 0.0f); } } } @Override // defpackage.tas public final void a(final String str, final String str2, final tbc tbc) { new StringBuilder("onFileUpload===threadId:").append(Thread.currentThread().getId()).append(" ,fileId:").append(str).append(" ,localId:").append(str2).append(" ,state:").append(tbc.state).append(Message.SEPARATE).append(tbc.bOe).append(Message.SEPARATE).append(tbc.gcF); fzc.bJM().y(new Runnable() { /* class defpackage.fox.AnonymousClass39.AnonymousClass1 */ public final void run() { AnonymousClass39.a(AnonymousClass39.this, str, str2, tbc); } }); } }; protected fou gfc; private HashMap<String, foq> gfq; protected syp gfr; protected vvb gfs; protected vtd gft; private fon gfu; private foo gfv; private fow gfw; private String gfx; private int gfy = 0; private teu gfz; protected Context mContext; /* access modifiers changed from: package-private */ /* renamed from: fox$a */ public class a implements fdc.a { String fKm; String fileId; public a(String str, String str2) { this.fileId = str; this.fKm = str2; } @Override // defpackage.fdc.a public final void updateProgress(int i) { int i2 = 100; if (100 == i) { i2 = 101; } if (1 == i) { i = 0; } fox.this.a(this.fileId, this.fKm, i2, (float) i); } } /* renamed from: fox$b */ class b<T> extends fov<T> { private ArrayList<tah> gge; public b(ArrayList<tah> arrayList) { this.gge = arrayList; } /* access modifiers changed from: protected */ public final ArrayList<tah> bCo() { if (this.gge == null) { this.gge = new ArrayList<>(); } return this.gge; } } public fox(Context context) { int i = 0; this.mContext = context; this.gfc = fou.bBU(); this.gfq = new HashMap<>(); this.gfB = new HashMap<>(); this.gfC = new HashSet<>(); this.gfD = new HashSet<>(); this.gfw = new fow(context, this); syo.a(context, this); boolean z = OfficeApp.arx().arB().equals("Inner001") || OfficeApp.arx().arB().equals("cninner001") || VersionManager.aYi(); syk.fil().cjL = this.mContext.getString(R.string.public_app_name); syk.fil().cjM = this.mContext.getString(R.string.app_version); syk.fil().uyZ = OfficeApp.arx().arA(); syk.fil().uyY = z; syk.fil().uzb = !z ? 1 : i; syk.fil().mLocale = Locale.getDefault(); syk.fil().uzc = OfficeApp.arx().arM().lYE; syk.fil().uza = ebj.aSh(); syk.fil(); syk.a(new tfx() { /* class defpackage.fox.AnonymousClass1 */ @Override // defpackage.tfx public final void g(int i, String str, String str2) { lve.ai(String.valueOf(i), str, str2); } }); String bAC = fnw.bAC(); if (TextUtils.isEmpty(bAC)) { bBX(); } else { syk.fil().uyX = bAC; fnw.rs(!bAC.contains("qing.wps.cn") ? "i18n" : "cn"); } ebg.eyx = 0; vsh.a(new tfz()); vru.a(tet.fjt()); vqc.fUp().wyu = new syq(this, syk.fil()); vqc.fUp().wyr = OfficeApp.arx().arM().lZG; vqc.fUp().wys = OfficeApp.arx().arM().lZc; amw.a(new amw() { /* class defpackage.fox.AnonymousClass12 */ @Override // defpackage.amw public final int HY() { lus.a.dxn(); return lus.dxl(); } @Override // defpackage.amw public final int HZ() { return fll.HZ(); } @Override // defpackage.amw public final int Ia() { return fll.Ia(); } @Override // defpackage.amw public final int Ib() { lus.a.dxn(); return lus.Ib(); } @Override // defpackage.amw public final boolean cn(String str) { return lus.a.dxn().aJ(str, 2); } }); smb.a(new smb() { /* class defpackage.fox.AnonymousClass23 */ @Override // defpackage.smb public final boolean bCm() { return tgb.isNetworkConnected(syo.fio()); } @Override // defpackage.smb public final String getNetworkType() { return tgb.ic(syo.fio()); } }); vxh.a(new tft(syo.fio())); this.gfr = syp.fip(); this.gfr.start(); this.gfx = syp.getDeviceId(); bCb(); bBZ(); bCa(); bBY(); bCi(); } protected static ArrayList<tah> K(ArrayList<tah> arrayList) { ArrayList<tah> arrayList2 = new ArrayList<>(); HashMap hashMap = new HashMap(); for (int i = 0; i < arrayList.size(); i++) { tah tah = arrayList.get(i); if (!taj.TU(tah.path)) { String str = tah.hkv; if ("group".equals(tah.gbi)) { str = tah.groupId; } if (!hashMap.containsKey(str)) { hashMap.put(str, 1); arrayList2.add(tah); } } else { String str2 = tah.path; if (!hashMap.containsKey(str2)) { hashMap.put(str2, 1); arrayList2.add(tah); } } } return arrayList2; } protected static boolean K(Object obj) { return "uploading".equals(obj); } private long a(String str, String str2, String str3, String str4, String str5, boolean z, final boolean z2, final boolean z3, final Cfor r22) { return this.gfr.a(str, str2, str3, str4, str5, z, false, new fov<String>() { /* class defpackage.fox.AnonymousClass44 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(String str, tfd tfd) { String str2 = str; if (!TextUtils.isEmpty(str2) && z2) { if (!z3) { fox.this.gfr.a(str2, fox.this.gfJ); } else { fox.this.gfr.a(str2, fox.this.gfI); } } fox.this.a(r22, str2, tfd); } @Override // defpackage.taq, defpackage.fov public final void onProgress(long j, long j2) { try { r22.onProgress(j, j2); } catch (RemoteException e) { } } }); } private long a(String str, String str2, String str3, String str4, boolean z, final boolean z2, final boolean z3, final Cfor r20) { AnonymousClass43 r10 = new fov<String>() { /* class defpackage.fox.AnonymousClass43 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(String str, tfd tfd) { String str2 = str; if (!TextUtils.isEmpty(str2) && z2) { if (!z3) { fox.this.gfr.a(str2, fox.this.gfJ); } else { fox.this.gfr.a(str2, fox.this.gfI); } } fox.this.a(r20, str2, tfd); } @Override // defpackage.taq, defpackage.fov public final void onProgress(long j, long j2) { try { r20.onProgress(j, j2); } catch (RemoteException e) { } } }; syp syp = this.gfr; tel tel = new tel(str, str2, str3, str4, z); tel.a(r10); return syp.fiq().b((tbd) tel).getId(); } protected static WPSCdKey a(vsn vsn) { WPSCdKey wPSCdKey = new WPSCdKey(); wPSCdKey.cdKey = vsn.hLS; wPSCdKey.remainingTime = Long.valueOf(vsn.wzL).longValue(); wPSCdKey.times = vsn.times; wPSCdKey.lastReqTime = System.currentTimeMillis() / 1000; return wPSCdKey; } protected static fls a(vui vui) { fls fls = new fls(); fls.id = vui.id; fls.fileid = vui.fileid; fls.groupid = vui.groupid; fls.dCT = vui.dCT; fls.fWl = vui.fWl; fls.mtime = vui.mtime; fls.fWm = vui.fWm; fls.fWn = vui.fWn; fls.fWo = vui.fWo; fls.fWp = vui.fWp; fls.fWq = vui.fWq; fls.fWr = vui.fWr; fls.fWs = vui.fWs; return fls; } protected static fne a(vvq vvq) { if (vvq == null) { return null; } fne fne = new fne(); fne.id = vvq.id; fne.gaX = vvq.gaX; fne.name = vvq.name; fne.type = vvq.type; fne.gbb = vvq.gbb; fne.ctime = vvq.ctime; fne.mtime = vvq.mtime; fne.gbc = vvq.gbc; fne.gbd = vvq.gbd; fne.gbe = vvq.gbe; return fne; } protected static fnh a(vul vul) { if (vul == null) { return null; } fnh fnh = new fnh(); fnh.fileid = vul.fileid; fnh.type = vul.type; fnh.gbC = vul.gbC; fnh.gbD = vul.gbD; fnh.gbE = vul.wBt.longValue(); fnh.gbF = vul.gbF; fnh.gbG = vul.gbG; fnh.gbH = vul.gbH; fnh.gbI = vul.gbI; fnh.gbJ = vul.gbJ; fnh.device = vul.device; return fnh; } public static fni a(vvw vvw) { if (vvw == null) { return null; } fni fni = new fni(); fni.ctime = vvw.ctime * 1000; fni.fileid = vvw.fileid; fni.gbh = vvw.gbh; fni.fWr = vvw.fWr; fni.fWl = vvw.fWl; fni.gbi = vvw.gbi; fni.fWs = vvw.fWs; fni.groupid = vvw.groupid; fni.mtime = vvw.mtime * 1000; fni.parentid = vvw.parentid; return fni; } private fnk a(tah tah, boolean z) { boolean z2 = true; fnk fnk = new fnk(); fnk.name = tah.gbh; fnk.size = tah.fWl; fnk.appType = tah.uAn; fnk.modifyDate = tah.uAA * 1000; fnk.gbK = tah.uAy; fnk.gbL = tah.uAm; fnk.gca = tah.jUU; fnk.fileId = tah.hkv; fnk.gbO = tgd.Um(tah.uAy); fnk.gbP = tah.uAp; fnk.gbQ = !tgd.Um(tah.uAy); fnk.gbR = tah.gbR; fnk.fWV = taj.TU(tah.path); fnk.gbT = tah.gbT; if ("toupload".equals(tah.status)) { fnk.status = 1; } else if ("uploading".equals(tah.status)) { fnk.status = 2; } else if ("haveKeywords".equals(tah.status)) { fnk.status = 5; } else if ("illegalName".equals(tah.status)) { fnk.status = 4; } else if ("nameLengthExceed".equals(tah.status)) { fnk.status = 3; } else { fnk.status = 0; } if (tah.uAq != null) { fnk.gbS = (fnk.a) JSONUtil.instance(tah.uAq.wAX.toString(), fnk.a.class); } fnk.path = tah.path; fnk.gbN = tah.uAz; if (TextUtils.isEmpty(fnk.gbN) && !z) { fnk.gbN = fqd.getDeviceName(); } if (tgd.Um(tah.uAy)) { fnk.status = 1; } if (taj.TU(tah.path)) { fnk.gbN = b(tah); fnk.status = 0; } fnk.fws = null; fnk.containsKeyContent = tah.uAB; fnk.containsKeyName = tah.uAC; fnk.gbi = tah.gbi; if (TextUtils.isEmpty(fnk.gbi)) { fnk.gbi = KS2SEventNative.SCHEME_FILE; } fnk.gbX = tah.gbX; fnk.gbY = tah.gbY; fnk.gbZ = tah.gbZ; if (TextUtils.isEmpty(this.gfx) || !this.gfx.equals(tah.gbY)) { z2 = false; } fnk.gbW = z2; fnk.groupId = tah.groupId; fnk.gcb = tah.uAD; fnk.gcc = tah.gcc; return fnk; } private String b(tah tah) { flk flk; try { flk = new flk(tah.path); try { return this.mContext.getString(fqo.sk(flk.fUQ)); } catch (Exception e) { } } catch (Exception e2) { flk = null; return (flk == null || "null".equals(flk.fUQ)) ? "Unknown" : flk.fUQ; } } private static void bBX() { String TF; String str; if (VersionManager.aYQ()) { TF = syr.TF("cn"); str = "cn"; } else { TF = syr.TF("i18n"); str = "i18n"; } fza.bJK().a(fva.CLOUD_QING_SERVER_URL, TF); fnw.rs(str); syk.fil().uyX = TF; } private void bBZ() { if (!this.gfG) { this.gfG = true; if (this.gfz == null) { this.gfz = new teu() { /* class defpackage.fox.AnonymousClass34 */ @Override // defpackage.teu public final void a(vrs vrs) { fox.this.ln(true); } }; } if (this.gfA == null) { this.gfA = new teu() { /* class defpackage.fox.AnonymousClass45 */ @Override // defpackage.teu public final void a(vrs vrs) { if (vrs instanceof vrt) { vrt vrt = (vrt) vrs; if (vrt.wzp != null) { dwp.l(vrt.wzn, vrt.wzp); } else if (!TextUtils.isEmpty(vrt.wzo)) { dwp.at(vrt.wzn, vrt.wzo); } else { dwp.km(vrt.wzn); } } } }; } tet.fjt().a(tew.class, this.gfz, tet.f.PostThread); tet.fjt().a(vrt.class, this.gfA, tet.f.PostThread); } } private void bCa() { if (this.gfs != null) { syp syp = this.gfr; AnonymousClass56 r1 = new tav() { /* class defpackage.fox.AnonymousClass56 */ @Override // defpackage.tav public final void a(String str, String str2, String str3, tfd tfd) { if (tfd instanceof tfb) { tfb tfb = (tfb) tfd; new StringBuilder("onError===fileId:").append(str2).append(" ,localId:").append(str).append(" ,error:").append(tfb.msg); fox.this.a(str, str2, tfb); fox.this.ln(true); fox.this.a(str, str2, str3, tfb); } } @Override // defpackage.tav public final void wj(int i) { fox.this.gfE = i; if (fox.this.gfF) { syk.fil(); if (syk.fin()) { fox.this.mContext.getResources().getString(R.string.public_app_name); new Intent(ebg.aSd()); if (fox.this.gfE == 0) { fox.this.gfF = false; dzo.bz(fox.this.mContext).rb(4886); } } } } }; tax tax = syp.fiq().uBy; tax.uBa = r1; if (r1 != null) { tax.fiZ(); } } } private void bCb() { String bAy = fnw.bAy(); if (!TextUtils.isEmpty(bAy) && this.gfs == null) { this.gfs = vvb.Xp(bAy); if (this.gfs != null) { this.gfr.a(this.gfs); this.gfr.start(); this.gft = this.gfs.wBJ; lm(true); bCf(); syk.fil().uzn = this.gfs.ute; } if (this.gfs != null) { ebi.eze = true; } else { ebi.eze = false; } if (this.gfs != null) { for (tau tau : syp.gz(syk.fil().uyX, this.gfs.userId)) { if (!TextUtils.isEmpty(tau.mFileId)) { this.gfr.a(tau.mFileId, this.gfJ); this.gfr.a(tau.mFileId, this.gfI); } if (!TextUtils.isEmpty(tau.uAR)) { this.gfr.a(tau.uAR, this.gfJ); this.gfr.a(tau.uAR, this.gfI); } } } } } private void bCc() { if (this.gfs != null) { ebi.eze = true; this.gfr.a(this.gfs); wg(1); bCe(); this.gft = this.gfs.wBJ; lm(false); bBZ(); } bBX(); } private void bCd() { if (this.gfs != null) { this.gfr.a(this.gfs); this.gfr.start(); bCf(); } } private static void bCh() { try { if (System.currentTimeMillis() - gfp > 3600000) { gfp = System.currentTimeMillis(); ServerParamsUtil.Params tG = ServerParamsUtil.tG("wpsdrive_task_retry_setting"); if (tG != null && tG.result == 0 && "on".equals(tG.status) && tG.extras != null) { long j = 600000; long j2 = 1000; for (ServerParamsUtil.Extras extras : tG.extras) { if ("sync_task_min_delay_time".equals(extras.key)) { try { long longValue = Long.valueOf(extras.value).longValue(); j2 = longValue > 0 ? longValue * 1000 : j2; } catch (Throwable th) { } } else if ("sync_task_max_delay_time".equals(extras.key)) { try { long longValue2 = Long.valueOf(extras.value).longValue(); j = longValue2 > 0 ? longValue2 * 1000 : j; } catch (Throwable th2) { } } } syk.fil().uzh = j2; syk.fil().uzi = j; } } } catch (Exception e) { lve.a("ERROR", TAG, "updateSyncTaskDelayTime error.", e); } } private void bCi() { try { if (flj.byQ()) { this.gfr.FX(flj.byR()); } } catch (Exception e) { lve.a("ERROR", TAG, "updateSyncProcessTaskPauseState error.", e); } } private HashMap<String, fde> bCj() { if (this.gfH == null) { this.gfH = new HashMap<>(); } return this.gfH; } private boolean bCl() { if (this.gfs != null) { bBX(); this.gfr.a(this.gfs); this.gfr.start(); return true; } lve.ai("ERROR", TAG, "[KickOutUser] session is null"); bBl(); return false; } protected static <T> Bundle f(String str, T t) { Bundle bundle = new Bundle(); bundle.putString("key_status_code", str); if (t != null) { bundle.putString("key_result", JSONUtil.toJSONString(t)); } return bundle; } private void ll(boolean z) { syk.fil(); if (z != syk.fin()) { syk.fil(); syk.ll(z); if (z) { bCg(); } } } private void lm(final boolean z) { try { if (this.gft != null) { fnw.rr(JSONUtil.toJSONString(a(this.gft))); } } catch (Exception e) { e.printStackTrace(); } fcx.p(new Runnable() { /* class defpackage.fox.AnonymousClass2 */ public final void run() { if (z) { try { fox.this.gft = fox.this.gfr.c(fox.this.bAz(), fox.this.gfs); } catch (tfd e) { } } } }); } @Override // defpackage.fop public final void D(boolean z, boolean z2) { syk.fil().uzn = null; ebi.eze = false; if (z) { ebh.setStatus(3); lve.ai("INFO", TAG, "[Session]kickout"); } else { ebh.setStatus(2); lve.ai("INFO", TAG, "[Session]logout initiative"); } try { String str = (this.gft == null || this.gft.wAj == null) ? null : this.gft.wAj.dCT; this.gft = null; this.gfs = null; fza.bJK().a(fva.CLOUD_QING_ID_TEMP_FILE_MAP); fza.bJK().a(fva.CLOUD_QING_ROAMING_NETWORK_TYPE); fza.bJK().a(fva.CLOUD_QING_SERVER_TYPE); fza.bJK().a(fva.CLOUD_QING_SERVER_URL); fza.bJK().a(fva.CLOUD_QING_SESSION); fza.bJK().a(fva.CLOUD_QING_ACCOUNT_SERVER); fza.bJK().a(fva.CLOUD_AUTO_UPLOAD_LIMIT_TIPS_SHOWED); fnw.bAI(); syk.fil(); syk.ll(false); if (z2) { final fcw fcw = new fcw(); AnonymousClass9 r2 = new fov<Void>() { /* class defpackage.fox.AnonymousClass9 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(Void r3, tfd tfd) { fcw.C(true); } }; this.gfr.cancelAll(); OfficeApp.arx().arz(); syp syp = this.gfr; tbo tbo = new tbo(true, true); tbo.a(r2); syp.fiq().b((tbd) tbo).getId(); fqd.bCM(); ((Boolean) fcw.btK()).booleanValue(); } if (!z) { syp syp2 = this.gfr; AnonymousClass4 r22 = new fov<Void>() { /* class defpackage.fox.AnonymousClass4 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(Void r2, tfd tfd) { fox.this.gfr.cancelAll(); } }; if (syp2.uzC != null) { syp2.uzC.fjl(); syp2.uzC = null; } tde tde = new tde(syp2.uzx.wyl); tde.a(r22); syp2.fiq().b((tbd) tde).getId(); } if (this.gfz != null) { tet fjt = tet.fjt(); teu teu = this.gfz; synchronized (fjt.uEi) { HashSet<Class<?>> hashSet = fjt.uEi.get(teu); if (hashSet != null) { hashSet.remove(tew.class); if (hashSet.size() <= 0) { fjt.uEi.remove(teu); } ArrayList<tet.a> arrayList = fjt.uEj.get(tew.class); if (arrayList != null) { Iterator<tet.a> it = arrayList.iterator(); while (it.hasNext()) { tet.a next = it.next(); T t = next.uEm.obj; if (t == teu || t == null) { next.uEm.obj = null; it.remove(); } } if (arrayList.size() <= 0) { fjt.uEj.remove(tew.class); } } } } this.gfz = null; } this.gfG = false; fqd.bCM(); fqd.bCN(); fou fou = this.gfc; synchronized (fou.mLock) { if (fou.gfi != null) { fou.gfi.clear(); fou.atJ(); } } fqs.bEb().sy("clouddocs"); ArrayList arrayList2 = new ArrayList(); dfs.aDB().F(arrayList2); String aRY = aRY(); Iterator it2 = arrayList2.iterator(); while (it2.hasNext()) { String path = ((WpsHistoryRecord) it2.next()).getPath(); if (!TextUtils.isEmpty(path) && path.startsWith(aRY)) { dfs.aDB().iO(path); } } foq foq = this.gfq.get(eip.b.HOME.name()); if (foq != null) { try { foq.bBn(); } catch (RemoteException e) { } } fnw.la(true); fnw.f(true, str); dga.jk(str); gbr.bLG().uR(str); fza.bJK().bU("key_fileradar_upload_error_" + str, ""); } catch (Exception e2) { lve.a("ERROR", TAG, "[Session]logout exception!", e2); } } /* JADX WARNING: Removed duplicated region for block: B:18:0x0038 */ /* JADX WARNING: Removed duplicated region for block: B:9:0x001c */ @Override // defpackage.fop public final fos L(String str, String str2, String str3) { tfd e; String str4; tfb e2; fom fom = new fom(); try { str4 = this.gfr.av(str, str2, str3); try { if (TextUtils.isEmpty(str4)) { fom.ezE = "empty"; } } catch (tfb e3) { e2 = e3; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str4); fom.geY = str4; return fom.geZ; } catch (tfd e4) { e = e4; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str4); fom.geY = str4; return fom.geZ; } } catch (tfb e5) { str4 = null; e2 = e5; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str4); fom.geY = str4; return fom.geZ; } catch (tfd e6) { str4 = null; e = e6; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str4); fom.geY = str4; return fom.geZ; } fom.dDc = !TextUtils.isEmpty(str4); fom.geY = str4; return fom.geZ; } /* JADX WARNING: Removed duplicated region for block: B:11:0x001a */ /* JADX WARNING: Removed duplicated region for block: B:13:0x0028 */ /* JADX WARNING: Removed duplicated region for block: B:23:0x0043 */ @Override // defpackage.fop public final fos M(String str, String str2, String str3) { tfb e; boolean z; tfd e2; fom fom = new fom(); try { vvb aw = this.gfr.aw(str, str2, str3); z = aw == null; if (z) { try { fom.ezE = "empty"; } catch (tfb e3) { e = e3; fom.ezE = e.result; if (this.gfs != null) { } fom.dDc = !z; return fom.geZ; } catch (tfd e4) { e2 = e4; fom.ezE = e2.getMessage(); if (this.gfs != null) { } fom.dDc = !z; return fom.geZ; } } else { this.gfs = aw; } } catch (tfb e5) { e = e5; z = true; fom.ezE = e.result; if (this.gfs != null) { } fom.dDc = !z; return fom.geZ; } catch (tfd e6) { e2 = e6; z = true; fom.ezE = e2.getMessage(); if (this.gfs != null) { } fom.dDc = !z; return fom.geZ; } if (this.gfs != null) { bCc(); bBX(); bCa(); bCd(); } fom.dDc = !z; return fom.geZ; } @Override // defpackage.fop public final void S(long j) { syk.fil(); syk.bC(j); } @Override // defpackage.fop public final void T(long j) { if (j > 0) { tay bD = this.gfr.bD(j); if (bD != null) { bD.a((taq) null); } tay bD2 = this.gfr.bD(j); if (bD2 != null) { bD2.eVr = true; } } } @Override // defpackage.fop public final void W(long j) { syk.fil().uzd = j; fqd.Z(j); } @Override // defpackage.fop public final void X(long j) { syk.fil().X(j); } @Override // defpackage.fop public final void Y(long j) { syk.fil().uzl = j; } @Override // defpackage.fop public final long a(final int i, Bundle bundle, final Cfor r13) { AnonymousClass72 r7 = new fov() { /* class defpackage.fox.AnonymousClass72 */ @Override // defpackage.taq, defpackage.fov public final void a(Object obj, tfd tfd) { if (!fox.K(obj)) { fox.this.a(r13, obj, tfd); } } @Override // defpackage.taq, defpackage.fov public final void onProgress(long j, long j2) { try { r13.onProgress(j, j2); } catch (RemoteException e) { new StringBuilder("processQingOperation operation = ").append(i).append(" callback.onProgress."); } } }; syp syp = this.gfr; tbd tbd = null; switch (i) { case 1: tbd = new tdb(bundle.getString("key_file_path")); break; case 2: tbd = new tcp(bundle.getString("key_file_path"), bundle.getBoolean("key_is_get_cachepath")); break; case 3: tbd = new tcf(bundle.getString("key_file_path"), bundle.getString("key_fid"), bundle.getBoolean("key_is_dont_getcachefileid")); break; case 4: tbd = new tcg(bundle.getString("key_fileid"), bundle.getBoolean("key_is_reset"), bundle.getString("key_include"), bundle.getBoolean("key_iscompany")); break; case 5: tbd = new tdn(bundle.getString("key_file_path")); break; case 6: tbd = new tce(bundle.getString("key_src_path")); break; case 7: tbd = new tcr(syp.uzx.wyq); break; case 8: tbd = new tbz(); break; case 9: String string = bundle.getString("key_groupid"); String string2 = bundle.getString("key_fileid"); String[] strArr = {string2}; tbd = new tbp(string, strArr, bundle.getString("key_target_groupId"), bundle.getString("key_target_parentid"), bundle.getBoolean("key_iscompany")); break; case 10: tbd = new tcz(bundle.getString("key_fileid"), bundle.getString("key_groupid"), bundle.getString("key_historyid")); break; case 11: tbd = new tcy(bundle.getString("key_fileid"), bundle.getString("key_groupid"), bundle.getString("key_historyid")); break; case 12: String string3 = bundle.getString("key_groupid"); ArrayList<String> stringArrayList = bundle.getStringArrayList("key_fileid_list"); tbd = new tbp(string3, (String[]) tgd.aH(stringArrayList), bundle.getString("key_target_groupId"), bundle.getString("key_target_parentid"), bundle.getBoolean("key_iscompany")); break; case 13: tbd = new teh(bundle.getString("key_fileid"), bundle.getLong("key_fsize"), bundle.getString("key_apptype"), bundle.getString("key_file_path"), bundle.getBoolean("key_is3rd")); break; case 14: tbd = new tby(bundle.getStringArrayList("key_filepath_list")); break; } tbd.a(r7); return syp.fiq().b(tbd).getId(); } @Override // defpackage.fop public final long a(String str, int i, int i2, final Cfor r9) { syp syp = this.gfr; File file = new File(str); AnonymousClass3 r2 = new fov<String>() { /* class defpackage.fox.AnonymousClass3 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(String str, tfd tfd) { String str2 = str; if (!TextUtils.isEmpty(str2)) { try { if (fox.this.gft != null) { fox.this.gft.wAj.usw = str2; fnw.rr(JSONUtil.toJSONString(fox.this.a(fox.this.gft))); } } catch (Exception e) { } } fox.this.a(r9, Boolean.valueOf(!TextUtils.isEmpty(str2)), tfd); } }; tej tej = new tej(file, i, i2, syp.uzx); tej.a(r2); return syp.fiq().b((tbd) tej).getId(); } @Override // defpackage.fop public final long a(String str, String str2, long j, String str3, String str4, final Cfor r18) { AnonymousClass46 r2 = new fov<String>() { /* class defpackage.fox.AnonymousClass46 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(String str, tfd tfd) { fox.this.a(r18, str, tfd); } }; syp syp = this.gfr; tdp tdp = new tdp(str, str2, j, str3, str4); tdp.a(r2); return syp.fiq().b((tbd) tdp).getId(); } @Override // defpackage.fop public final long a(String str, String str2, String str3, String str4, String str5, boolean z, Cfor r17) { return a(str, str2, str3, str4, str5, z, false, false, r17); } @Override // defpackage.fop public final long a(String str, String str2, String str3, String str4, boolean z, Cfor r15) { return a(str, str2, str3, str4, z, false, false, r15); } @Override // defpackage.fop public final long a(String str, String str2, final String str3, boolean z, boolean z2, boolean z3, final Cfor r15) throws RemoteException { if (z3) { this.gfr.a(str3, this.gfJ); } AnonymousClass32 r6 = new fov<File>() { /* class defpackage.fox.AnonymousClass32 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(File file, tfd tfd) { final File file2 = file; if (tfd != null) { try { r15.m(fox.this.b(tfd)); } catch (RemoteException e) { } } else if (file2 == null) { r15.n(fox.f("key_status_ok", "")); } else { fcx.p(new Runnable() { /* class defpackage.fox.AnonymousClass32.AnonymousClass1 */ public final void run() { fnb fnb = new fnb(); fnb.id = str3; fnb.gaM = file2.getAbsolutePath(); fnb.sha1 = lwl.IM(file2.getAbsolutePath()); fnb.gaN = false; fox.this.gfc.a(fnb); } }); r15.n(fox.f("key_status_ok", file2.getAbsolutePath())); r15.onSuccess(); } } @Override // defpackage.taq, defpackage.fov public final void j(long j, long j2) { try { r15.j(j, j2); } catch (RemoteException e) { } } @Override // defpackage.taq, defpackage.fov public final void onProgress(long j, long j2) { try { r15.onProgress(j, j2); } catch (RemoteException e) { } } }; String sd = TextUtils.isEmpty(str2) ? fqd.sd(str) : str2; syp syp = this.gfr; syp.Tw(str3); tdk tdk = new tdk(str3, str, z, sd, z2); tdk.a(r6); return syp.fiq().b((tbd) tdk).getId(); } @Override // defpackage.fop public final long a(String str, String str2, boolean z, final Cfor r29) throws RemoteException { final fls fls = (fls) JSONUtil.instance(str, fls.class); this.gfr.a(fls.fileid, this.gfJ); AnonymousClass33 r23 = new fov<File>() { /* class defpackage.fox.AnonymousClass33 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(File file, tfd tfd) { final File file2 = file; if (tfd != null) { try { r29.m(fox.this.b(tfd)); } catch (RemoteException e) { } } else if (file2 == null || !file2.exists()) { r29.n(fox.f("key_status_ok", "")); } else { fcx.p(new Runnable() { /* class defpackage.fox.AnonymousClass33.AnonymousClass1 */ public final void run() { fnb fnb = new fnb(); fnb.id = fls.fileid; fnb.gaM = file2.getAbsolutePath(); fnb.sha1 = lwl.IM(file2.getAbsolutePath()); fnb.gaN = false; fnb.gaP = fls.id; fnb.gaO = true; fox.this.gfc.a(fnb); } }); r29.n(fox.f("key_status_ok", file2.getAbsolutePath())); r29.onSuccess(); } } @Override // defpackage.taq, defpackage.fov public final void j(long j, long j2) { try { r29.j(j, j2); } catch (RemoteException e) { } } @Override // defpackage.taq, defpackage.fov public final void onProgress(long j, long j2) { try { r29.onProgress(j, j2); } catch (RemoteException e) { } } }; if (TextUtils.isEmpty(str2)) { fqd.sd(fls.fileName); } syp syp = this.gfr; tdm tdm = new tdm(new vui(fls.id, fls.fileid, fls.groupid, fls.dCT, fls.fWl, fls.mtime, fls.fWm, fls.fWn, fls.fWo, fls.fWp, fls.fWq, fls.fWr, fls.fWs), fls.fileName, z); tdm.a(r23); return syp.fiq().b((tbd) tdm).getId(); } @Override // defpackage.fop public final long a(String str, String str2, boolean z, boolean z2, final boolean z3, final Cfor r18) throws RemoteException { Log.e(TAG, "importFile: " + str + ", " + Log.getStackTraceString(new Throwable())); AnonymousClass22 r9 = new fov<String>() { /* class defpackage.fox.AnonymousClass22 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(String str, tfd tfd) { String str2 = str; if (!TextUtils.isEmpty(str2) && z3) { fox.this.gfr.a(str2, fox.this.gfJ); } fox.this.a(r18, str2, tfd); } }; bCf(); try { return this.gfr.a(str, fqd.sd(str), str2, z, z2, z3, r9); } catch (IllegalStateException e) { if (bCl()) { return this.gfr.a(str, fqd.sd(str), str2, z, z2, z3, r9); } return 0; } } @Override // defpackage.fop public final long a(boolean z, final Cfor r5) { syp syp = this.gfr; AnonymousClass8 r1 = new fov<Void>() { /* class defpackage.fox.AnonymousClass8 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Void r3, tfd tfd) { fox.this.a(r5, r3, tfd); } }; tdu tdu = new tdu(z); tdu.a(r1); return syp.fiq().b((tbd) tdu).getId(); } public final fnc a(vwb vwb) { String str; String str2 = null; if (vwb == null) { return null; } fnc fnc = new fnc(); fnc.id = vwb.id; fnc.gaQ = vwb.gaQ; fnc.gaR = vwb.gaR; fnc.gaS = vwb.gaS; fnc.gaT = vwb.gaT; fnc.type = vwb.type; if (vwb.wCt != null) { fnc.gaU = new fnc.a(); fnc.gaU.id = vwb.wCt.id; fnc.gaU.name = vwb.wCt.name; fnc.gaU.ecE = vwb.wCt.ecE; fnc.gaU.gaX = vwb.wCt.gaX; } fnc.gaV = vwb.gaV; Object obj = vwb.data; String str3 = vwb.type; if (str3 == null) { str = null; } else { if ("group_create".equals(str3)) { str2 = this.mContext.getString(R.string.home_clouddocs_events_group_create); } else if ("group_member_quit".equals(str3)) { str2 = this.mContext.getString(R.string.home_clouddocs_events_group_member_quit); } else if ("group_member_join_by_link".equals(str3)) { str2 = this.mContext.getString(R.string.home_clouddocs_events_group_member_add_by_link); } if (obj != null) { if (obj instanceof vwd) { if ("file_create".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_create), ((vwd) obj).gbh); } else if ("file_update".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_update), ((vwd) obj).gbh, String.valueOf(((vwd) obj).fWs)); } else if ("file_delete".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_delete), ((vwd) obj).gbh); } else if ("file_recover".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_recover), ((vwd) obj).gbh); } else if ("file_shift_in".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_shift_in), ((vwd) obj).gbh); } else if ("file_shift_out".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_shift_out), ((vwd) obj).gbh); } else if ("file_shift_delete".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_shift_delete), ((vwd) obj).gbh); } else if ("file_rename".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_rename), ((vwf) obj).gbh); } else if ("file_comment".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_comment), ((vwd) obj).gbh, ((vwe) obj).wCx); } else if ("file_share".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_file_share), ((vwd) obj).gbh); } } else if (obj instanceof vwj) { if ("group_member_role_upgrade".equals(str3)) { if ("admin".equals(((vwj) obj).role) || "manager".equals(((vwj) obj).role)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_group_member_role_upgrade_to_manager), ((vwj) obj).wCz); } else { str = ""; } } else if ("group_member_role_degrade".equals(str3)) { str = ""; } } else if (obj instanceof vwh) { if ("group_member_add".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_group_member_add), ((vwh) obj).wCz); } else if ("group_member_delete".equals(str3)) { str = lwv.a(this.mContext.getString(R.string.home_clouddocs_events_group_member_delete), ((vwh) obj).wCz); } } else if (obj instanceof vwi) { str = this.mContext.getString(R.string.home_clouddocs_events_group_rename); } } str = str2; } fnc.gaW = str; fnc.ctime = vwb.ctime; fnc.mtime = vwb.mtime; return fnc; } /* access modifiers changed from: protected */ public final fnk a(tah tah) { return a(tah, false); } /* access modifiers changed from: protected */ public final fno a(vtd vtd) { fno fno = new fno(); vte vte = vtd.wAj; fno.userId = vte.dCT; fno.userName = vte.usr; fno.gcm = vte.usv; fno.gcn = vte.gcn; fno.cyO = vte.usw; fno.gco = "i18n".equals(fnw.bAD()); fno.gcp = vte.usn; fno.gcq = vte.usu; fno.gcy = vtd.gcy; fno.gcr = vte.gcr; fno.gcs = vte.gcs; fno.gct = vte.job_title; fno.job = vte.job; fno.gcu = vte.usx; fno.address = vte.address; fno.gcv = vte.gcv; fno.gcw = vte.gcw; fno.contact_name = vte.contact_name; fno.gcx = vte.uso; if (vtd.uzG != null) { fno.gcz = new fno.c(); fno.gcz.gcG = vtd.uzG.wAq; fno.gcz.gcH = vtd.uzG.gcH; fno.gcz.fwr = vtd.uzG.fwr; String str = vtd.uzG.wAp.name; if (ebg.ezd.containsKey(str)) { fno.gcz.gcI = this.mContext.getString(ebg.ezd.get(str).intValue()); } else { fno.gcz.gcI = str; } if (vtd.uzG.wAp != null) { fno.gcz.gcJ = vtd.uzG.wAp.gcC; fno.gcz.gcK = vtd.uzG.wAp.gbs; ArrayList<vtg> arrayList = vtd.uzG.wAp.wAo; if (arrayList != null) { fno.gcz.gcL = new ArrayList(); Iterator<vtg> it = arrayList.iterator(); while (it.hasNext()) { vtg next = it.next(); fno.a aVar = new fno.a(); aVar.gcC = next.gcC; aVar.gbs = next.gbs; aVar.name = next.name; fno.gcz.gcL.add(aVar); } } } } if (vtd.wAk != null) { fno.gcA = new fno.b(); fno.gcA.gcD = vtd.wAk.gcD; fno.gcA.gcE = vtd.wAk.gcE; fno.gcA.gcF = vtd.wAk.gcF; } if (vtd.wAl != null) { fno.gcB = new fng(); if (vtd.wAl.wzT != null) { fno.gcB.gbu = new fng.a(); fno.gcB.gbu.fwr = vtd.wAl.wzT.fwr; fno.gcB.gbu.gbx = vtd.wAl.wzT.gbx; fno.gcB.gbu.gbz = vtd.wAl.wzT.gbz; fno.gcB.gbu.gby = vtd.wAl.wzT.gby; fno.gcB.gbu.gbA = vtd.wAl.wzT.gbA; fno.gcB.gbu.gbB = vtd.wAl.wzT.gbB; } if (vtd.wAl.wzU != null) { fno.gcB.gbv = new fng.a(); fno.gcB.gbv.fwr = vtd.wAl.wzU.fwr; fno.gcB.gbv.gbx = vtd.wAl.wzU.gbx; fno.gcB.gbv.gbz = vtd.wAl.wzU.gbz; fno.gcB.gbv.gby = vtd.wAl.wzU.gby; fno.gcB.gbv.gbA = vtd.wAl.wzU.gbA; fno.gcB.gbv.gbB = vtd.wAl.wzU.gbB; } if (vtd.wAl.wzV != null) { fno.gcB.gbw = new fng.a(); fno.gcB.gbw.fwr = vtd.wAl.wzV.fwr; fno.gcB.gbw.gbx = vtd.wAl.wzV.gbx; fno.gcB.gbw.gbz = vtd.wAl.wzV.gbz; fno.gcB.gbw.gby = vtd.wAl.wzV.gby; fno.gcB.gbw.gbA = vtd.wAl.wzV.gbA; fno.gcB.gbw.gbB = vtd.wAl.wzV.gbB; } } return fno; } /* JADX WARNING: Removed duplicated region for block: B:14:0x0054 */ /* JADX WARNING: Removed duplicated region for block: B:23:0x006e */ @Override // defpackage.fop public final fos a(String str, String str2, String str3, String str4, String str5, String str6) { tfd e; String str7; tfb e2; fom fom = new fom(); try { if (TextUtils.isEmpty(str2) || TextUtils.isEmpty(str3)) { dwp.lU("public_login_third_party_token_null"); lve.ai("ERROR", TAG, "[oauthVerify]Login params errorutype=" + str2 + ", accessToken=" + str3); } str7 = this.gfr.c(str, str2, str3, str4, str5, str6); try { if (TextUtils.isEmpty(str7)) { fom.ezE = "empty"; } } catch (tfb e3) { e2 = e3; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str7); fom.geY = str7; return fom.geZ; } catch (tfd e4) { e = e4; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str7); fom.geY = str7; return fom.geZ; } } catch (tfb e5) { e2 = e5; str7 = null; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str7); fom.geY = str7; return fom.geZ; } catch (tfd e6) { e = e6; str7 = null; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str7); fom.geY = str7; return fom.geZ; } fom.dDc = !TextUtils.isEmpty(str7); fom.geY = str7; return fom.geZ; } @Override // defpackage.fop public final String a(String str, String str2, String str3, String str4, String str5, fot fot) { syn.FV(true); try { fog fog = new fog(fot); syp syp = this.gfr; vvb a2 = syp.a(str, str2, str3, str4, str5, false, (vrj) fog); tga.i("third login success, getUserInfo now..."); syp.b(a2); this.gfs = a2; ebh.setStatus(1); } catch (tez e) { syn.FV(false); return e.result; } catch (tfd e2) { lve.a("ERROR", TAG, "loginFromThirdParty", e2); } syn.FV(false); if (this.gfs != null) { bBX(); bCc(); bCa(); bCd(); } return null; } /* access modifiers changed from: protected */ public final List<fnk> a(ArrayList<tah> arrayList, boolean z) { ArrayList<tah> K = K(arrayList); ArrayList arrayList2 = new ArrayList(); int size = K.size(); for (int i = 0; i < size; i++) { fnk a2 = a(K.get(i), z); if (!z || a2.isStar()) { arrayList2.add(a2); } } return arrayList2; } @Override // defpackage.fop public final void a(final long j, int i, final Cfor r13, final String str) { try { syp syp = this.gfr; AnonymousClass14 r1 = new b<ArrayList<tah>>(null) { /* class defpackage.fox.AnonymousClass14 */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(Object obj, tfd tfd) { ArrayList arrayList = (ArrayList) obj; if (tfd != null) { try { r13.m(fox.this.b(tfd)); } catch (RemoteException e) { } } ArrayList<tah> arrayList2 = new ArrayList<>(); arrayList2.addAll(bCo()); arrayList2.addAll(arrayList); fox.this.a(str, arrayList2, j / 1000, true, false, r13); } }; tcb tcb = new tcb(i, str); tcb.a(r1); syp.fiq().b((tbd) tcb).getId(); } catch (IllegalStateException e) { lve.a("ERROR", TAG, "[KickOutUser]IllegalStateException", e); dwp.km("public_get_roaming_records_exception_quit"); bBl(); } } @Override // defpackage.fop public final void a(long j, List<String> list, final Cfor r9) { AnonymousClass58 r1 = new fov<vwn>() { /* class defpackage.fox.AnonymousClass58 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(vwn vwn, tfd tfd) { fnf fnf; fnn fnn = null; vwn vwn2 = vwn; fox fox = fox.this; Cfor r4 = r9; fox fox2 = fox.this; if (vwn2 != null) { fnn fnn2 = new fnn(); fnn2.gcf = vwn2.gcf; fnn2.gcg = vwn2.gcg; fnn2.gch = new ArrayList<>(); Iterator<vwk> it = vwn2.gch.iterator(); while (it.hasNext()) { vwk next = it.next(); fnn.a aVar = new fnn.a(); aVar.id = next.id; aVar.gcj = next.gcj; aVar.gck = fox2.a(next.wCC); fnn2.gch.add(aVar); } fnn2.gci = new fnn.b(); fnn2.gci.gcj = vwn2.wCE.gcj; fnn.b bVar = fnn2.gci; vws vws = vwn2.wCE.wCD; if (vws == null) { fnf = null; } else { fnf = new fnf(); fnf.id = vws.id; fnf.gaQ = vws.gaQ; fnf.gbf = vws.gbf; fnf.gbg = vws.gbg; fnf.gbh = vws.gbh; fnf.fWl = vws.fWl; fnf.gbi = vws.gbi; fnf.fWs = vws.fWs; fnf.gbj = vws.gbj; fnf.ctime = vws.ctime; fnf.mtime = vws.mtime; fnf.gbk.gbm = vws.wCK.gbm; fnf.gbk.gaS = vws.wCK.gaS; fnf.gbk.gbn = vws.wCK.gbn; fnf.gbk.gbo = vws.wCK.gbo; fnf.gbk.gaQ = vws.wCK.gaQ; fnf.gbk.status = vws.wCK.status; fnf.gbk.gbq = vws.wCK.gbq; fnf.gbk.permission = vws.wCK.permission; fnf.gbk.gbr = vws.wCK.gbr; fnf.gbk.gbs = vws.wCK.gbs; fnf.gbk.gbt.id = vws.wCK.wCI.id; fnf.gbk.gbt.name = vws.wCK.wCI.name; fnf.gbk.gbt.ecE = vws.wCK.wCI.ecE; fnf.gbk.gbt.gaX = vws.wCK.wCI.gaX; } bVar.gcl = fnf; fnn = fnn2; } fox.a(r4, fnn, tfd); } }; syp syp = this.gfr; tei tei = new tei(j, list == null ? null : (String[]) list.toArray(new String[0])); tei.a(r1); syp.fiq().b((tbd) tei).getId(); } @Override // defpackage.fop public final void a(ebe ebe) { this.gfC.remove(ebe); } @Override // defpackage.fop public final void a(final Cfor r4) { try { AnonymousClass57 r0 = new fov<vts>() { /* class defpackage.fox.AnonymousClass57 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(vts vts, tfd tfd) { fox.this.a(r4, vts, tfd); } }; syp syp = this.gfr; tch tch = new tch(); tch.a(r0); syp.fiq().b((tbd) tch).getId(); } catch (Exception e) { } } /* access modifiers changed from: protected */ public final <T> void a(Cfor r2, T t, tfd tfd) { if (t != null) { try { if (!(t instanceof Void)) { r2.n(f("key_status_ok", (Object) t)); } } catch (RemoteException e) { return; } } if (tfd != null) { r2.m(b(tfd)); } else { r2.onSuccess(); } } @Override // defpackage.fop public final void a(final Cfor r4, boolean z) { AnonymousClass65 r0 = new fov<ArrayList<vvw>>() { /* class defpackage.fox.AnonymousClass65 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(ArrayList<vvw> arrayList, tfd tfd) { ArrayList<vvw> arrayList2 = arrayList; if (arrayList2 != null) { ArrayList arrayList3 = new ArrayList(); Iterator<vvw> it = arrayList2.iterator(); while (it.hasNext()) { arrayList3.add(fox.a(it.next())); } fox.this.a(r4, arrayList3, tfd); } } }; syp syp = this.gfr; tef tef = new tef(z); tef.a(r0); syp.fiq().b((tbd) tef).getId(); } @Override // defpackage.fop public final void a(String str, long j, String str2, String str3, String str4, final Cfor r19) { vtx vtx; if (bBN() && ebd.aRS() && fqd.sf(str)) { AnonymousClass40 r10 = new fov<String>() { /* class defpackage.fox.AnonymousClass40 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(String str, tfd tfd) { fox.this.a(r19, str, tfd); } }; try { vtx = new vtx(str4); } catch (JSONException e) { e.printStackTrace(); vtx = null; } syp syp = this.gfr; tbs tbs = new tbs(str, j, str2, str3, vtx, fqd.sd(str)); tbs.a(r10); syp.fiq().b((tbd) tbs).getId(); } } @Override // defpackage.fop public final void a(String str, ebe ebe) { this.gfB.put(this.gfc.rS(str), ebe); } @Override // defpackage.fop public final void a(String str, foq foq) { this.gfq.put(str, foq); } @Override // defpackage.fop public final void a(String str, final Cfor r5) { AnonymousClass21 r0 = new fov<Boolean>() { /* class defpackage.fox.AnonymousClass21 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Boolean bool, tfd tfd) { fox.this.a(r5, bool, tfd); } }; syp syp = this.gfr; tbx tbx = new tbx(str); tbx.a(r0); syp.fiq().b((tbd) tbx).getId(); } @Override // defpackage.fop public final void a(String str, final Cfor r5, boolean z) { AnonymousClass20 r0 = new fov<Void>() { /* class defpackage.fox.AnonymousClass20 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Void r3, tfd tfd) { fox.this.a(r5, r3, tfd); } }; syp syp = this.gfr; syp.Tw(str); tbw tbw = new tbw(str, z); tbw.a(r0); syp.fiq().b((tbd) tbw).getId(); } /* access modifiers changed from: protected */ public final void a(String str, String str2, int i, float f) { ebe ebe = this.gfB.get(str); if (ebe == null) { ebe = this.gfB.get(str2); } if (ebe != null) { try { ebe.cr(i, (int) f); } catch (RemoteException e) { } } Iterator<ebe> it = this.gfC.iterator(); while (it.hasNext()) { try { it.next().a(str, str2, i, (int) f); } catch (RemoteException e2) { } } } @Override // defpackage.fop public final void a(String str, String str2, long j, long j2, long j3, boolean z, final Cfor r35, boolean z2, boolean z3, boolean z4) throws RemoteException { try { AnonymousClass54 r22 = new fov<tai>() { /* class defpackage.fox.AnonymousClass54 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(tai tai, tfd tfd) { tai tai2 = tai; if (tfd == null || tai2 != null) { ArrayList<fnk> arrayList = new ArrayList<>(); ArrayList<tah> arrayList2 = tai2.uAk; if (arrayList2 != null && arrayList2.size() > 0) { for (int i = 0; i < arrayList2.size(); i++) { arrayList.add(fox.this.a(arrayList2.get(i))); } } fnl fnl = new fnl(); fnl.gcd = arrayList; fnl.gce = tai2.uAE; fox.this.a(r35, fnl, tfd); return; } fox.this.a(r35, (Object) null, tfd); } }; syp syp = this.gfr; tdj tdj = new tdj(str, Integer.valueOf((int) j2), Integer.valueOf((int) j3), 0L, 0L, new StringBuilder().append((Object) 0).toString(), Boolean.valueOf(z), CookiePolicy.DEFAULT, "", true, true, str2, false, Boolean.valueOf(z2), Boolean.valueOf(z3), Boolean.valueOf(z4), 55); tdj.a(r22); syp.fiq().b((tbd) tdj).getId(); } catch (Exception e) { } } @Override // defpackage.fop public final void a(String str, String str2, final Cfor r7, final boolean z) { final String rS = this.gfc.rS(str); syp syp = this.gfr; AnonymousClass28 r2 = new fov<String>() { /* class defpackage.fox.AnonymousClass28 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(String str, tfd tfd) { String str2 = str; fnb fnb = new fnb(); fnb.id = rS; fnb.gaN = false; fnb.gaM = str2; fnb.sha1 = lwl.IM(str2); fox.this.gfc.a(fnb); if (z) { fox.this.rC(str2); } fox.this.a(r7, str2, tfd); } }; tdr tdr = new tdr(rS, str2); tdr.a(r2); syp.fiq().b((tbd) tdr).getId(); } @Override // defpackage.fop public final void a(String str, String str2, String str3, final Cfor r7) { AnonymousClass7 r0 = new fov<vvq>() { /* class defpackage.fox.AnonymousClass7 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(vvq vvq, tfd tfd) { fox.this.a(r7, fox.a(vvq), tfd); } }; syp syp = this.gfr; tdg tdg = new tdg(str, str2, str3); tdg.a(r0); syp.fiq().b((tbd) tdg).getId(); } @Override // defpackage.fop public final void a(String str, String str2, String str3, String str4, final Cfor r8) { syp syp = this.gfr; AnonymousClass42 r1 = new fov<Void>() { /* class defpackage.fox.AnonymousClass42 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Void r3, tfd tfd) { fox.this.a(r8, r3, tfd); } }; tbn tbn = new tbn(str, str2, str3, str4); tbn.a(r1); syp.fiq().b((tbd) tbn).getId(); } /* access modifiers changed from: protected */ public final void a(String str, String str2, String str3, tfb tfb) { if (!fep.buy()) { if (tfb == null || !cwz.ip(tfb.msg)) { String string = this.mContext.getResources().getString(R.string.home_cloudfile_upload_fail); String string2 = this.mContext.getResources().getString(R.string.home_cloudfile_upload_fail_content); int hashCode = (str + str2).hashCode() + 5120; String format = String.format(string2, str3); Bundle bundle = new Bundle(); if (!TextUtils.isEmpty(str2)) { bundle.putString("QING_CLOUD_FILE_FID_KEY", str2); } if (!TextUtils.isEmpty(str)) { bundle.putString("QING_CLOUD_FILE_LID_KEY", str); } dzo bz = dzo.bz(this.mContext); dzm dzm = dzm.euG; Intent intent = new Intent(bz.context, StartPublicActivity.class); intent.setFlags(ClientDefaults.MAX_MSG_SIZE); if (bundle != null) { if (bundle.containsKey("QING_CLOUD_FILE_FID_KEY")) { intent.putExtra("QING_CLOUD_FILE_FID_KEY", bundle.getString("QING_CLOUD_FILE_FID_KEY")); } if (bundle.containsKey("QING_CLOUD_FILE_LID_KEY")) { intent.putExtra("QING_CLOUD_FILE_LID_KEY", bundle.getString("QING_CLOUD_FILE_LID_KEY")); } } PendingIntent activity = PendingIntent.getActivity(bz.context, hashCode, intent, 134217728); egg.d dVar = new egg.d(bz.context); egg.d l = dVar.rM(dzo.a(dzm)).m(format).k(string).l(format); l.mContentIntent = activity; l.in(true); dVar.a(new egg.c().j(format)); bz.mNotificationManager.notify(hashCode, dVar.rO(hashCode)); } } } @Override // defpackage.fop public final void a(String str, String str2, String str3, boolean z, final Cfor r13) { AnonymousClass36 r6 = new fov<Void>() { /* class defpackage.fox.AnonymousClass36 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Void r3, tfd tfd) { fox.this.a(r13, r3, tfd); } }; OfficeApp.arx().arN().gO("roaming_save_to_roamingfile"); bCf(); this.gfr.a(str, this.gfJ); syp syp = this.gfr; tdt tdt = new tdt(str, str2, fqd.sd(str2), str3, z); tdt.a(r6); syp.fiq().b((tbd) tdt).getId(); } /* access modifiers changed from: protected */ public final void a(String str, String str2, tfb tfb) { ebe ebe = this.gfB.get(str2); if (ebe == null) { ebe = this.gfB.get(str); } if (ebe != null) { try { ebe.mH(tfb.msg); } catch (RemoteException e) { } } Iterator<ebe> it = this.gfC.iterator(); while (it.hasNext()) { try { it.next().u(str2, str, tfb.msg); } catch (RemoteException e2) { } } } @Override // defpackage.fop public final void a(String str, String str2, boolean z, boolean z2, String str3, String str4, final Cfor r17) { if (!VersionManager.aYQ()) { a(r17, (Object) null, (tfd) null); } else if (!ebo.aSq()) { a(r17, (Object) null, (tfd) null); } else { if (ebo.arU()) { cqn.arn(); if (cqn.arr()) { a(r17, (Object) null, (tfd) null); return; } } AnonymousClass62 r8 = new fov<Boolean>() { /* class defpackage.fox.AnonymousClass62 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Boolean bool, tfd tfd) { Boolean bool2 = bool; super.a(bool2, tfd); fox.this.a(r17, bool2, tfd); } }; syp syp = this.gfr; tbr tbr = new tbr(str, str2, z, z2, str3, str4); tbr.a(r8); syp.fiq().b((tbd) tbr).getId(); } } /* access modifiers changed from: protected */ public final void a(final String str, ArrayList<tah> arrayList, long j, boolean z, boolean z2, final Cfor r14) { this.gfr.a(j, MoPubNativeAdPositioning.MoPubClientPositioning.NO_REPEAT, true, (taq<ArrayList<tah>>) new b<ArrayList<tah>>(arrayList, false) { /* class defpackage.fox.AnonymousClass11 */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(Object obj, tfd tfd) { ArrayList arrayList = (ArrayList) obj; ArrayList arrayList2 = new ArrayList(); if (arrayList != null && arrayList.size() > 0) { ArrayList arrayList3 = new ArrayList(); Iterator it = arrayList.iterator(); while (it.hasNext()) { tah tah = (tah) it.next(); if (tah != null && (TextUtils.isEmpty(str) || (!TextUtils.isEmpty(tah.uAn) && tah.uAn.equals(str)))) { arrayList3.add(tah); } } arrayList2.addAll(arrayList3); } arrayList2.addAll(bCo()); ArrayList<tah> K = fox.K((ArrayList<tah>) arrayList2); ArrayList arrayList4 = new ArrayList(); int size = K.size(); for (int i = 0; i < size; i++) { fnk a = fox.this.a(K.get(i)); if (a != null && (!false || a.isStar())) { arrayList4.add(a); } } fox.this.a(r14, arrayList4, tfd); } }); } @Override // defpackage.fop public final void a(String str, boolean z, String str2, String str3, String str4, final Cfor r14) { AnonymousClass19 r6 = new fov<tah>() { /* class defpackage.fox.AnonymousClass19 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(tah tah, tfd tfd) { tah tah2 = tah; fnk fnk = null; if (tah2 != null) { fnk = fox.this.a(tah2); } fox.this.a(r14, fnk, tfd); } }; syp syp = this.gfr; tdf tdf = new tdf(str, z, str2, str3, str4); tdf.a(r6); syp.fiq().b((tbd) tdf).getId(); } @Override // defpackage.fop public final void a(String str, boolean z, boolean z2, final Cfor r6) { this.gfr.a(str, z, z2, new fov<tah>() { /* class defpackage.fox.AnonymousClass17 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(tah tah, tfd tfd) { tah tah2 = tah; fnk fnk = null; if (tah2 != null) { fnk = fox.this.a(tah2); } fox.this.a(r6, fnk, tfd); } }); } /* access modifiers changed from: protected */ public final void a(ArrayList<tah> arrayList, long j, boolean z, final boolean z2, final Cfor r14) { this.gfr.a(j, MoPubNativeAdPositioning.MoPubClientPositioning.NO_REPEAT, true, (taq<ArrayList<tah>>) new b<ArrayList<tah>>(arrayList) { /* class defpackage.fox.AnonymousClass10 */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(Object obj, tfd tfd) { ArrayList arrayList = (ArrayList) obj; ArrayList<tah> arrayList2 = new ArrayList<>(); if (arrayList != null) { arrayList2.addAll(arrayList); } arrayList2.addAll(bCo()); fox.this.a(r14, fox.this.a(arrayList2, z2), tfd); } }); } @Override // defpackage.fop public final void a(List<String> list, final Cfor r5) { AnonymousClass48 r0 = new fov<Boolean>() { /* class defpackage.fox.AnonymousClass48 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Boolean bool, tfd tfd) { fox.this.a(r5, bool, tfd); } }; syp syp = this.gfr; tcx tcx = new tcx(list); tcx.a(r0); syp.fiq().b((tbd) tcx).getId(); } @Override // defpackage.fop public final void a(final boolean z, long j, int i, final int i2, final long j2, String str, boolean z2, final Cfor r24) { AnonymousClass15 r2 = new b<tad>(new ArrayList()) { /* class defpackage.fox.AnonymousClass15 */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(Object obj, tfd tfd) { tad tad = (tad) obj; if (tfd != null) { try { r24.m(fox.this.b(tfd)); } catch (RemoteException e) { } } bCo().clear(); ebg.eyz = tad.uAj * 1000; bCo().addAll(tad.uAk); ebg.eyA = tad.offset; if (z || !fox.this.gfr.bxG()) { fox.this.a(bCo(), j2 / 1000, true, true, r24); } else { fox.this.a(r24, fox.this.a(bCo(), true), tfd); } } }; syp syp = this.gfr; tcd tcd = new tcd(z, j <= 0 ? null : Long.valueOf(j / 1000), (long) i, (long) i2, null, z2); tcd.a(r2); syp.fiq().b((tbd) tcd).getId(); } @Override // defpackage.fop public final void a(boolean z, long j, final long j2, int i, final Cfor r17) { try { bCh(); bCi(); this.gfr.a(z, j, i, true, (taq<ArrayList<tah>>) new b<ArrayList<tah>>(null) { /* class defpackage.fox.AnonymousClass13 */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(Object obj, tfd tfd) { ArrayList arrayList = (ArrayList) obj; if (tfd != null) { try { r17.m(fox.this.b(tfd)); } catch (RemoteException e) { } } ArrayList<tah> arrayList2 = new ArrayList<>(); arrayList2.addAll(bCo()); arrayList2.addAll(arrayList); fox.this.a(arrayList2, j2 / 1000, true, false, r17); } }); } catch (IllegalStateException e) { lve.a("ERROR", TAG, "[KickOutUser]IllegalStateException", e); dwp.km("public_get_roaming_records_exception_quit"); bBl(); } } @Override // defpackage.fop public final void a(String[] strArr, String[] strArr2, final Cfor r6) { AnonymousClass67 r0 = new fov<String[]>() { /* class defpackage.fox.AnonymousClass67 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(String[] strArr, tfd tfd) { fox.this.a(r6, strArr, tfd); } }; syp syp = this.gfr; tdq tdq = new tdq(strArr, strArr2); tdq.a(r0); syp.fiq().b((tbd) tdq).getId(); } @Override // defpackage.fop public final String aRY() throws RemoteException { return new File(syk.fil().uzc + ".Cloud").getAbsolutePath(); } @Override // defpackage.fop public final long b(String str, String str2, final Cfor r6) { AnonymousClass41 r0 = new fov<Boolean>() { /* class defpackage.fox.AnonymousClass41 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Boolean bool, tfd tfd) { fox.this.a(r6, bool, tfd); } }; syp syp = this.gfr; tdc tdc = new tdc(str, str2); tdc.a(r0); return syp.fiq().b((tbd) tdc).getId(); } @Override // defpackage.fop public final long b(String str, String str2, String str3, String str4, String str5, boolean z, Cfor r17) throws RemoteException { return a(str, str2, str3, str4, str5, z, true, true, r17); } @Override // defpackage.fop public final long b(String str, String str2, String str3, String str4, boolean z, Cfor r15) throws RemoteException { return a(str, str2, str3, str4, z, true, true, r15); } /* JADX DEBUG: Multi-variable search result rejected for r0v10, resolved type: syp */ /* JADX DEBUG: Multi-variable search result rejected for r1v8, resolved type: syp */ /* JADX WARN: Multi-variable type inference failed */ @Override // defpackage.fop public final Bundle b(int i, Bundle bundle) { hzq.a aVar; ArrayList arrayList; ArrayList arrayList2; ArrayList arrayList3; ArrayList<hzz> arrayList4; if (bundle != null) { hzq.a aVar2 = new hzq.a(); aVar2.jaL = bundle.getString("doc_guid"); aVar2.jaM = bundle.getString("doc_name"); aVar2.jaN = bundle.getString("doc_sign"); aVar2.jaO = bundle.getString("doc_secret_key"); aVar2.jaP = bundle.getString("enc_data"); aVar2.jaQ = bundle.getString("doc_sign_new"); aVar2.jaR = bundle.getString("doc_secret_key_new"); aVar2.jaT = bundle.getString("opid"); Parcelable[] parcelableArray = bundle.getParcelableArray("security_rights"); if (parcelableArray == null || parcelableArray.length <= 0) { arrayList4 = null; } else { ArrayList<hzz> arrayList5 = new ArrayList<>(parcelableArray.length); for (Parcelable parcelable : parcelableArray) { if (parcelable instanceof Bundle) { arrayList5.add(new hzz(((Bundle) parcelable).getString("principalId"), ((Bundle) parcelable).getString("principalTitle"), ((Bundle) parcelable).getStringArrayList("operationIds"))); } } arrayList4 = arrayList5; } aVar2.jaS = arrayList4; aVar = aVar2; } else { aVar = null; } switch (i) { case 1: vuw ax = this.gfr.ax(aVar.jaL, aVar.jaN, aVar.jaP); if (ax == null) { return null; } if (ax.jaS == null || ax.jaS.isEmpty()) { arrayList3 = null; } else { ArrayList arrayList6 = new ArrayList(); Iterator<vux> it = ax.jaS.iterator(); while (it.hasNext()) { vux next = it.next(); arrayList6.add(new hzz(next.jbn, next.jbo, next.jbp)); } arrayList3 = arrayList6; } return hzq.a(new hzy(ax.jaL, ax.jaO, arrayList3)); case 2: if (aVar.jaS == null || aVar.jaS.isEmpty()) { arrayList2 = null; } else { ArrayList arrayList7 = new ArrayList(aVar.jaS.size()); Iterator<hzz> it2 = aVar.jaS.iterator(); while (it2.hasNext()) { hzz next2 = it2.next(); arrayList7.add(new vux(next2.jbn, next2.jbo, next2.jbp)); } arrayList2 = arrayList7; } vuv b2 = this.gfr.b(aVar.jaM, aVar.jaN, aVar.jaO, arrayList2); if (b2 == null) { return null; } hzv hzv = new hzv(b2.jaL, b2.jaP); Bundle bundle2 = new Bundle(); bundle2.putString("doc_guid", hzv.jaL); bundle2.putString("enc_data", hzv.jaP); return bundle2; case 3: if (aVar.jaS == null || aVar.jaS.isEmpty()) { arrayList = null; } else { arrayList = new ArrayList(aVar.jaS.size()); Iterator<hzz> it3 = aVar.jaS.iterator(); while (it3.hasNext()) { hzz next3 = it3.next(); arrayList.add(new vux(next3.jbn, next3.jbo, next3.jbp)); } } vuy b3 = this.gfr.b(aVar.jaM, aVar.jaL, aVar.jaN, aVar.jaP, aVar.jaQ, aVar.jaR, arrayList); if (b3 == null) { return null; } iaa iaa = new iaa(b3.jaL, b3.jaP); Bundle bundle3 = new Bundle(); bundle3.putString("doc_guid", iaa.jaL); bundle3.putString("enc_data", iaa.jaP); return bundle3; case 4: syp syp = this.gfr; String str = aVar.jaL; String str2 = aVar.jaT; String str3 = syp.gfs == null ? null : syp.gfs.lMm; if (str3 == null) { throw new tfd("no session id"); } try { syp.uzy.wyR.be(str3, str, str2); return new Bundle(); } catch (vrz e) { throw syp.c(e); } case 5: try { vuz fiu = this.gfr.fiu(); if (fiu == null) { return null; } iab iab = new iab(fiu.jbq, fiu.jbr); Bundle bundle4 = new Bundle(); bundle4.putStringArrayList("perm", iab.jbq); bundle4.putStringArrayList("trans", iab.jbr); return bundle4; } catch (tfd e2) { e2.printStackTrace(); if (!(e2 instanceof tff) || ((tff) e2).uEz == null) { return null; } try { teq o = teq.o(new JSONObject(((tff) e2).uEz)); hzw hzw = new hzw(o.errorCode, o.gov); Bundle bundle5 = new Bundle(); bundle5.putInt("error_code", hzw.errorCode); bundle5.putString("error_msg", hzw.gov); return bundle5; } catch (JSONException e3) { return null; } } default: return null; } } /* access modifiers changed from: protected */ public final <T> Bundle b(tfd tfd) { fow.a a2 = this.gfw.a(tfd); Integer valueOf = Integer.valueOf(a2.gfo); String str = a2.gfn; Bundle bundle = new Bundle(); bundle.putString("key_status_code", "key_status_error"); if (valueOf != null) { bundle.putString("key_result", JSONUtil.toJSONString(valueOf)); bundle.putString("KEY_RESULT_ERR_MSG", str); } return bundle; } @Override // defpackage.fop public final String b(String str, String str2, String str3, fot fot) { syn.FV(true); try { fog fog = new fog(fot); syp syp = this.gfr; vvb a2 = syp.a(str, str2, str3, fog); tga.i("third login success, getUserInfo now..."); syp.b(a2); this.gfs = a2; ebh.setStatus(1); } catch (tez e) { syn.FV(false); return e.result; } catch (tfd e2) { lve.a("ERROR", TAG, "[Session]Login Exception", e2); } syn.FV(false); if (this.gfs != null) { bCc(); bBX(); bCa(); bCd(); } return null; } @Override // defpackage.fop public final void b(ebe ebe) throws RemoteException { this.gfD.remove(ebe); } @Override // defpackage.fop public final void b(final Cfor r4) { try { AnonymousClass55 r0 = new fov<String>() { /* class defpackage.fox.AnonymousClass55 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(String str, tfd tfd) { String str2 = str; Bundle bundle = new Bundle(); if (str2 == null) { str2 = ""; } bundle.putString("key_result", str2); try { r4.n(bundle); } catch (RemoteException e) { e.printStackTrace(); } } }; syp syp = this.gfr; tdl tdl = new tdl(); tdl.a(r0); syp.fiq().b((tbd) tdl).getId(); } catch (Exception e) { } } @Override // defpackage.fop public final void b(String str, foq foq) { this.gfq.remove(str); } @Override // defpackage.fop public final void b(final String str, final Cfor r3) { fcx.p(new Runnable() { /* class defpackage.fox.AnonymousClass35 */ public final void run() { try { r3.n(fox.f("key_status_ok", fox.this.rD(str))); } catch (RemoteException e) { e.printStackTrace(); } } }); } @Override // defpackage.fop public final void b(String str, String str2, String str3, String str4, final Cfor r9) { AnonymousClass71 r0 = new fov<Void>() { /* class defpackage.fox.AnonymousClass71 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Void r3, tfd tfd) { fox.this.a(r9, r3, tfd); } }; syp syp = this.gfr; tdh tdh = new tdh(str, new String[]{str2}, str3, str4); tdh.a(r0); syp.fiq().b((tbd) tdh).getId(); } @Override // defpackage.fop public final void b(String str, String str2, String str3, boolean z, final Cfor r8) { AnonymousClass37 r0 = new fov<Void>() { /* class defpackage.fox.AnonymousClass37 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Void r3, tfd tfd) { fox.this.a(r8, r3, tfd); } }; bCf(); this.gfr.a(str, this.gfJ); syp syp = this.gfr; tdo tdo = new tdo(str, str2, str3, z); tdo.a(r0); syp.fiq().b((tbd) tdo).getId(); } @Override // defpackage.fop public final void b(String[] strArr, String[] strArr2, final Cfor r6) { AnonymousClass68 r0 = new fov<String[]>() { /* class defpackage.fox.AnonymousClass68 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(String[] strArr, tfd tfd) { fox.this.a(r6, strArr, tfd); } }; syp syp = this.gfr; tbv tbv = new tbv(strArr, strArr2); tbv.a(r0); syp.fiq().b((tbd) tbv).getId(); } @Override // defpackage.fop public final int bAB() { return fnw.bAB(); } @Override // defpackage.sym public final String bAz() { if (!bBK()) { String str = ebg.eyt; fnw.rq(VersionManager.aYQ() ? ebg.eyt : "https://account.wps.com"); } return fnw.bAz(); } @Override // defpackage.fop public final fon bBA() { if (this.gfu == null) { this.gfu = (fon) fti.a("cn.wps.moffice.main.cloud.storage.core.service.internal.clouddocs.WPSCloudDocsAPI", new Class[]{fox.class}, this); } return this.gfu; } @Override // defpackage.fop public final foo bBB() { if (this.gfv == null) { this.gfv = new fht(this); } return this.gfv; } @Override // defpackage.fop public final int bBD() { int i = 0; try { vsm fis = this.gfr.fis(); if (fis != null && TextUtils.isEmpty(fis.wzJ)) { i = 1; } } catch (tfd e) { e.printStackTrace(); } try { vtc fit = this.gfr.fit(); return (fit == null || "1".equals(fit.wAg)) ? i : i + 1; } catch (tfd e2) { e2.printStackTrace(); return i; } } @Override // defpackage.fop public final void bBF() { String[] strArr; int i; long j; int i2 = 0; if (!VersionManager.aYS()) { try { List<LabelRecord> aQk = dyk.bx(this.mContext).aQk(); if (aQk == null || aQk.size() <= 0) { strArr = null; } else { String[] strArr2 = new String[aQk.size()]; for (int i3 = 0; i3 < aQk.size(); i3++) { strArr2[i3] = aQk.get(i3).filePath; } strArr = strArr2; } if (this.gfy < 3) { ServerParamsUtil.Params tG = ServerParamsUtil.tG("roaming_auto_cache"); if (tG == null || tG.result != 0 || !"on".equals(tG.status) || tG.extras == null) { i = 0; j = 0; } else { long j2 = 0; for (ServerParamsUtil.Extras extras : tG.extras) { if ("auto_cache_count".equals(extras.key)) { try { i2 = Integer.valueOf(extras.value).intValue(); } catch (Throwable th) { } } else if ("auto_cache_file_size_limit".equals(extras.key)) { try { j2 = (long) ((Integer.valueOf(extras.value).intValue() << 10) << 10); } catch (Throwable th2) { } } } i = i2; j = j2; } if (i == 0 || j == 0) { this.gfy++; } else { syp syp = this.gfr; AnonymousClass16 r4 = new syl() { /* class defpackage.fox.AnonymousClass16 */ @Override // defpackage.syl public final File Q(File file) { return csp.a(fox.this.mContext, file); } }; syp.uzz = i; syp.uzA = j; syp.uzB = r4; this.gfy = MoPubNativeAdPositioning.MoPubClientPositioning.NO_REPEAT; } } syp syp2 = this.gfr; if (syp2.uzz <= 0) { syp2.uzC = null; return; } if (syp2.uzC == null) { syp2.uzC = new tbg(syp2.uzz, syp2.uzA, syp2.uzB); } syp2.uzC.Z(strArr); } catch (Throwable th3) { lve.e("WPSQingServiceImpl", "triggerAutoCacheFile error", th3); } } } /* JADX WARNING: Removed duplicated region for block: B:23:0x003d */ @Override // defpackage.fop public final fos bBI() { boolean z; tfd e; tfb e2; boolean z2 = true; fom fom = new fom(); try { vsm fis = this.gfr.fis(); z = fis == null; if (z) { try { fom.ezE = "empty"; } catch (tfb e3) { e2 = e3; fom.ezE = e2.result; if (z) { } fom.dDc = z2; return fom.geZ; } catch (tfd e4) { e = e4; fom.ezE = e.getMessage(); if (z) { } fom.dDc = z2; return fom.geZ; } } else { try { fom.geY = fis.fUQ().toString(); } catch (JSONException e5) { z = true; } } } catch (tfb e6) { e2 = e6; z = true; fom.ezE = e2.result; if (z) { } fom.dDc = z2; return fom.geZ; } catch (tfd e7) { e = e7; z = true; fom.ezE = e.getMessage(); if (z) { } fom.dDc = z2; return fom.geZ; } if (z) { z2 = false; } fom.dDc = z2; return fom.geZ; } @Override // defpackage.fop public final String bBJ() { if (this.gfs == null) { return null; } return this.gfs.fVb(); } @Override // defpackage.fop public final boolean bBK() { return this.gfs != null && !TextUtils.isEmpty(syk.fil().uyX); } @Override // defpackage.fop public final void bBL() { if (!VersionManager.aYR() && this.gfs != null && this.gfs.userId != null) { fcx.p(new Runnable() { /* class defpackage.fox.AnonymousClass74 */ public final void run() { try { Map<String, String> TD = fox.this.gfr.TD(fox.this.gfs.userId); if (TD != null && TD.size() > 0) { TD.put("tim", String.valueOf(System.currentTimeMillis())); TD.put("need_encrypt", "need_encrypt"); dwp.l("user_phone_email", TD); } } catch (tfd e) { e.printStackTrace(); } } }); } } @Override // defpackage.fop public final Bundle bBM() { if (this.gfs == null) { return f("key_status_ok", (Object) null); } if (this.gft == null) { this.gft = this.gfs.wBJ; } fno a2 = a(this.gft); try { fnw.rr(JSONUtil.toJSONString(a2)); } catch (Exception e) { e.printStackTrace(); } return f("key_status_ok", a2); } @Override // defpackage.fop public final boolean bBN() { return this.gfr.bBN(); } @Override // defpackage.fop public final long bBO() { return syk.fil().uzd; } @Override // defpackage.fop public final int bBP() { if (this.gfE != 0) { return this.gfE; } syp syp = this.gfr; return tbj.gO(syp.fiq().uzw, syp.fiq().gfs.userId).size(); } @Override // defpackage.fop public final long bBQ() { return syk.fil().uzg; } @Override // defpackage.fop public final long bBR() { return syk.fil().uze; } @Override // defpackage.fop public final long bBS() { return syk.fil().uzf; } /* access modifiers changed from: protected */ public final void bBY() { if (fll.byU()) { if (!bBK() || this.gft == null) { syk.fil().uzk = false; return; } else if (this.gft.wAj == null || this.gft.wAj.usn <= 0) { if (crc.a(true, a(this.gft), 20)) { syk.fil().uzk = false; return; } else { syk.fil().uzk = true; return; } } } syk.fil().uzk = false; } @Override // defpackage.sym public final String bBk() { return "https://securitydoc.wps.cn"; } /* access modifiers changed from: protected */ public final void bBl() { foq foq; if (this.gfs != null && (foq = this.gfq.get(eip.b.HOME.name())) != null) { try { foq.bBl(); } catch (RemoteException e) { } } } @Override // defpackage.fop public final String bBs() { bBX(); return syp.aW("0x9e737286", luf.gR(this.mContext)); } @Override // defpackage.fop public final String bBt() { return syp.FW(luf.gR(this.mContext)); } @Override // defpackage.fop public final long bBv() { return syk.fil().uzl; } @Override // defpackage.fop public final void bBw() { new Thread(new Runnable() { /* class defpackage.fox.AnonymousClass66 */ public final void run() { try { new vqb().wyl.a(vrj.wzc); } catch (Exception e) { } } }).start(); } @Override // defpackage.fop public final void bBx() { new Thread(new Runnable() { /* class defpackage.fox.AnonymousClass73 */ public final void run() { try { String TF = VersionManager.aYQ() ? syr.TF("cn") : syr.TF("i18n"); vqg vqg = new vqg(); if (vqg.wyH == null) { vqg.wyH = new vra(); } vqg.wyH.WZ(TF); } catch (Exception e) { } } }).start(); } /* access modifiers changed from: protected */ public final void bCe() { if (this.gfs != null) { fza.bJK().a(fva.CLOUD_QING_SESSION, this.gfs.fVb()); syk.fil().uzn = this.gfs.ute; } } public final void bCf() { int bAB = bAB(); syk.fil().FU(bAB == 1); if (1 != bAB || lwd.isWifiConnected(this.mContext)) { ll(true); } else { ll(false); } } public final void bCg() { try { if (this.gfr != null) { this.gfr.fiq().uBy.fja(); } } catch (Throwable th) { } } public final void bCk() { this.gfF = false; } /* JADX WARNING: Removed duplicated region for block: B:18:0x0038 */ /* JADX WARNING: Removed duplicated region for block: B:9:0x001c */ @Override // defpackage.fop public final fos bp(String str, String str2) { tfd e; String str3; tfb e2; fom fom = new fom(); try { str3 = this.gfr.gu(str, str2); try { if (TextUtils.isEmpty(str3)) { fom.ezE = "empty"; } } catch (tfb e3) { e2 = e3; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } catch (tfd e4) { e = e4; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } } catch (tfb e5) { str3 = null; e2 = e5; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } catch (tfd e6) { str3 = null; e = e6; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } /* JADX WARNING: Removed duplicated region for block: B:23:0x003d */ @Override // defpackage.fop public final fos bq(String str, String str2) { boolean z; tfd e; tfb e2; boolean z2 = true; fom fom = new fom(); try { vsz gv = this.gfr.gv(str, str2); z = gv == null; if (z) { try { fom.ezE = "empty"; } catch (tfb e3) { e2 = e3; fom.ezE = e2.result; if (z) { } fom.dDc = z2; return fom.geZ; } catch (tfd e4) { e = e4; fom.ezE = e.getMessage(); if (z) { } fom.dDc = z2; return fom.geZ; } } else { try { fom.geY = gv.fUQ().toString(); } catch (JSONException e5) { z = true; } } } catch (tfb e6) { e2 = e6; z = true; fom.ezE = e2.result; if (z) { } fom.dDc = z2; return fom.geZ; } catch (tfd e7) { e = e7; z = true; fom.ezE = e.getMessage(); if (z) { } fom.dDc = z2; return fom.geZ; } if (z) { z2 = false; } fom.dDc = z2; return fom.geZ; } /* JADX WARNING: Removed duplicated region for block: B:18:0x0038 */ /* JADX WARNING: Removed duplicated region for block: B:9:0x001c */ @Override // defpackage.fop public final fos br(String str, String str2) { tfd e; String str3; tfb e2; fom fom = new fom(); try { str3 = this.gfr.gy(str, str2); try { if (TextUtils.isEmpty(str3)) { fom.ezE = "empty"; } } catch (tfb e3) { e2 = e3; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } catch (tfd e4) { e = e4; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } } catch (tfb e5) { str3 = null; e2 = e5; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } catch (tfd e6) { str3 = null; e = e6; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } fom.dDc = !TextUtils.isEmpty(str3); fom.geY = str3; return fom.geZ; } @Override // defpackage.fop public final fos bs(String str, String str2) { fom fom = new fom(); boolean z = false; try { this.gfr.gx(str, str2); z = true; } catch (tfb e) { fom.ezE = e.result; } catch (tfd e2) { fom.ezE = e2.getMessage(); } fom.dDc = z; return fom.geZ; } /* access modifiers changed from: protected */ public final fde bt(String str, String str2) { fde fde = bCj().get(str); if (!(fde != null || (fde = bCj().get(str2)) == null || str == null)) { fde.fDD = new a(str, str2); bCj().put(str, fde); } if (fde == null) { fde = new fde(); fde.vo(1000); fde.cy(0.0f); fde.fDD = new a(str, str2); if (str != null) { bCj().put(str, fde); } if (str2 != null) { bCj().put(str2, fde); } } return fde; } /* access modifiers changed from: protected */ public final void bu(String str, String str2) { this.gfr.b(str, this.gfJ); this.gfr.b(str2, this.gfJ); bCj().remove(str); bCj().remove(str2); } public final vvb bwi() { return this.gfs; } @Override // defpackage.fop public final boolean bxG() throws RemoteException { return this.gfr.bxG(); } @Override // defpackage.fop public final long c(final Cfor r4) { syp syp = this.gfr; AnonymousClass5 r1 = new fov<vtd>() { /* class defpackage.fox.AnonymousClass5 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(vtd vtd, tfd tfd) { vtd vtd2 = vtd; fno fno = null; if (vtd2 != null) { if (fox.this.gfs != null) { fox.this.gfs.wBJ = vtd2; fox.this.bCe(); fox.this.gft = vtd2; } try { fno = fox.this.a(vtd2); fnw.rr(JSONUtil.toJSONString(fno)); } catch (Exception e) { e.printStackTrace(); } fox.this.bBY(); } fox.this.a(r4, fno, tfd); } }; tcw tcw = new tcw(); tcw.a(r1); return syp.fiq().b((tbd) tcw).getId(); } @Override // defpackage.fop public final void c(ebe ebe) { this.gfC.add(ebe); } @Override // defpackage.fop public final void c(String str, final Cfor r5) { AnonymousClass47 r0 = new fov<Boolean>() { /* class defpackage.fox.AnonymousClass47 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Boolean bool, tfd tfd) { fox.this.a(r5, bool, tfd); } }; syp syp = this.gfr; tdd tdd = new tdd(str); tdd.a(r0); syp.fiq().b((tbd) tdd).getId(); } @Override // defpackage.fop public final void c(final String str, String str2, final Cfor r6) { AnonymousClass29 r0 = new fov<Void>() { /* class defpackage.fox.AnonymousClass29 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(Void r4, tfd tfd) { Void r42 = r4; try { String mV = fox.this.mV(str); if (!TextUtils.isEmpty(mV) && lul.Iv(mV)) { fnb fnb = new fnb(); fnb.id = str; fnb.gaN = false; fnb.gaM = mV; fnb.sha1 = lwl.IM(mV); fox.this.gfc.a(fnb); } } catch (Exception e) { } fox.this.a(r6, r42, tfd); } }; syp syp = this.gfr; syp.Tw(str); tds tds = new tds(str, str2); tds.a(r0); syp.fiq().b((tbd) tds).getId(); } @Override // defpackage.fop public final void d(ebe ebe) throws RemoteException { this.gfD.add(ebe); } @Override // defpackage.fop public final void d(final Cfor r5) { syp syp = this.gfr; AnonymousClass6 r1 = new fov<vsj>() { /* class defpackage.fox.AnonymousClass6 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(vsj vsj, tfd tfd) { fox.this.a(r5, vsj, (tfd) null); } }; tca tca = new tca(syp.uzx.wyn); tca.a(r1); syp.fiq().b((tbd) tca).getId(); } @Override // defpackage.fop public final void d(String str, final Cfor r4) { AnonymousClass27 r0 = new fov<tep>() { /* class defpackage.fox.AnonymousClass27 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(tep tep, tfd tfd) { final tep tep2 = tep; String str = null; if (tep2 != null) { str = tep2.path; fcx.p(new Runnable() { /* class defpackage.fox.AnonymousClass27.AnonymousClass1 */ public final void run() { fnb fnb = new fnb(); fnb.id = tep2.hkv; fnb.gaM = tep2.path; fnb.sha1 = lwl.IM(tep2.path); fnb.gaN = true; fox.this.gfc.a(fnb); } }); } fox.this.a(r4, str, tfd); } }; bCf(); try { this.gfr.a(str, r0); } catch (IllegalStateException e) { if (bCl()) { this.gfr.a(str, r0); } } } @Override // defpackage.fop public final void d(String str, String str2, final Cfor r6) { AnonymousClass70 r0 = new fov<Long>() { /* class defpackage.fox.AnonymousClass70 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Long l, tfd tfd) { fox.this.a(r6, l, tfd); } }; syp syp = this.gfr; teg teg = new teg(str, str2); teg.a(r0); syp.fiq().b((tbd) teg).getId(); } @Override // defpackage.fop public final void e(final Cfor r4) { AnonymousClass18 r0 = new fov<ArrayList<tah>>() { /* class defpackage.fox.AnonymousClass18 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(ArrayList<tah> arrayList, tfd tfd) { ArrayList<tah> arrayList2 = arrayList; ArrayList arrayList3 = new ArrayList(); if (arrayList2 != null && arrayList2.size() > 0) { for (int i = 0; i < arrayList2.size(); i++) { arrayList3.add(fox.this.a(arrayList2.get(i))); } } fox.this.a(r4, arrayList3, tfd); } @Override // defpackage.taq, defpackage.fov public final void onCancel() { } @Override // defpackage.taq, defpackage.fov public final void onProgress(long j, long j2) { } }; syp syp = this.gfr; tcv tcv = new tcv(); tcv.a(r0); syp.fiq().b((tbd) tcv).getId(); } @Override // defpackage.fop public final void e(String str, final Cfor r5) { AnonymousClass30 r0 = new fov<ArrayList<vui>>() { /* class defpackage.fox.AnonymousClass30 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(ArrayList<vui> arrayList, tfd tfd) { ArrayList<vui> arrayList2 = arrayList; ArrayList arrayList3 = null; if (arrayList2 != null) { ArrayList arrayList4 = new ArrayList(); Iterator<vui> it = arrayList2.iterator(); while (it.hasNext()) { arrayList4.add(fox.a(it.next())); } arrayList3 = arrayList4; } fox.this.a(r5, arrayList3, tfd); } }; syp syp = this.gfr; tck tck = new tck(str); tck.a(r0); syp.fiq().b((tbd) tck).getId(); } @Override // defpackage.fop public final void e(String str, String str2, final Cfor r6) { AnonymousClass61 r0 = new fov<Boolean>() { /* class defpackage.fox.AnonymousClass61 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Boolean bool, tfd tfd) { Boolean bool2 = bool; super.a(bool2, tfd); fox.this.a(r6, bool2, tfd); } }; syp syp = this.gfr; tbu tbu = new tbu(str, str2); tbu.a(r0); syp.fiq().b((tbd) tbu).getId(); } @Override // defpackage.fop public final long f(final Cfor r14) throws RemoteException { List<cqp.a> arV; bCf(); Vector vector = new Vector(); dfs.aDB().F(vector); HashSet hashSet = new HashSet(); if (!cqx.asK() && (arV = OfficeApp.arx().cqA.arV()) != null) { for (cqp.a aVar : arV) { hashSet.add(OfficeApp.arx().arM().lYF + aVar.name); hashSet.add(OfficeApp.arx().arM().lYD + "file/" + aVar.name); } } ArrayList arrayList = new ArrayList(); Iterator it = vector.iterator(); while (it.hasNext()) { WpsHistoryRecord wpsHistoryRecord = (WpsHistoryRecord) it.next(); long j = wpsHistoryRecord.modifyDate; String path = wpsHistoryRecord.getPath(); if (!hashSet.contains(path)) { if (OfficeApp.arx().cqA.gF(wpsHistoryRecord.getName())) { if (VersionManager.aYQ()) { fzc.bJM().y(new Runnable() { /* class defpackage.fox.AnonymousClass24 */ public final void run() { hzg cnv = hzg.cnv(); cnv.K( /* JADX ERROR: Method code generation error jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0009: INVOKE (r0v0 'cnv' hzg) (wrap: hzg$2 : 0x0006: CONSTRUCTOR (r1v0 hzg$2) = (r0v0 'cnv' hzg) call: hzg.2.<init>(hzg):void type: CONSTRUCTOR) type: VIRTUAL call: hzg.K(java.lang.Runnable):void in method: fox.24.run():void, file: classes.dex at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:255) at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:217) at jadx.core.codegen.RegionGen.makeSimpleBlock(RegionGen.java:110) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:56) at jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:93) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:59) at jadx.core.codegen.MethodGen.addRegionInsns(MethodGen.java:244) at jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:237) at jadx.core.codegen.ClassGen.addMethodCode(ClassGen.java:342) at jadx.core.codegen.ClassGen.addMethod(ClassGen.java:295) at jadx.core.codegen.ClassGen.lambda$addInnerClsAndMethods$2(ClassGen.java:264) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) Caused by: jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0006: CONSTRUCTOR (r1v0 hzg$2) = (r0v0 'cnv' hzg) call: hzg.2.<init>(hzg):void type: CONSTRUCTOR in method: fox.24.run():void, file: classes.dex at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:255) at jadx.core.codegen.InsnGen.addWrappedArg(InsnGen.java:119) at jadx.core.codegen.InsnGen.addArg(InsnGen.java:103) at jadx.core.codegen.InsnGen.generateMethodArguments(InsnGen.java:806) at jadx.core.codegen.InsnGen.makeInvoke(InsnGen.java:746) at jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:367) at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:249) ... 14 more Caused by: jadx.core.utils.exceptions.JadxRuntimeException: Expected class to be processed at this point, class: hzg, state: GENERATED_AND_UNLOADED at jadx.core.dex.nodes.ClassNode.ensureProcessed(ClassNode.java:215) at jadx.core.codegen.InsnGen.makeConstructor(InsnGen.java:630) at jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:363) at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:230) ... 20 more */ /* this = this; hzg r0 = defpackage.hzg.cnv() hzg$2 r1 = new hzg$2 r1.<init>() r0.K(r1) return */ throw new UnsupportedOperationException("Method not decompiled: defpackage.fox.AnonymousClass24.run():void"); } }); } final String path2 = wpsHistoryRecord.getPath(); a(path2, wpsHistoryRecord.getName(), true, wpsHistoryRecord.getStar(), "wps_note", tgd.Ul(wpsHistoryRecord.getName()), (Cfor) new foy() { /* class defpackage.fox.AnonymousClass25 */ @Override // defpackage.foy, defpackage.Cfor public final void onSuccess() throws RemoteException { super.onSuccess(); dfs.aDB().iO(path2); } }); } else { String sd = fqd.sd(path); boolean star = wpsHistoryRecord.getStar(); arrayList.add(ebo.ju(path) ? new tbl.a(path, j, sd, star, ebo.mP(path)) : new tbl.a(path, j, sd, star, null)); if (star) { dwp.lU("public_add_star_login_star_sync"); } } } } AnonymousClass26 r0 = new tbl.b() { /* class defpackage.fox.AnonymousClass26 */ HashSet<String> gfO = new HashSet<>(); private synchronized void bCn() { fcz.btP().postDelayed(new Runnable() { /* class defpackage.fox.AnonymousClass26.AnonymousClass2 */ public final void run() { try { r14.onSuccess(); } catch (RemoteException e) { e.printStackTrace(); } } }, 800); } @Override // defpackage.tbl.b public final void N(final String str, final String str2, final String str3) { fox.this.gfr.a(str2, true, true, (taq<tah>) new fov<tah>() { /* class defpackage.fox.AnonymousClass26.AnonymousClass1 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(tah tah, tfd tfd) { tah tah2 = tah; if (tah2 != null && "toupload".equals(tah2.status)) { fnb fnb = new fnb(); fnb.sha1 = str3; fnb.gaN = false; fnb.gaM = str; fnb.id = str2; fou.bBU().a(fnb); ebo.a(fox.this.mContext, str, (String) null, true); } } }); } @Override // defpackage.tbl.b public final void rU(String str) { this.gfO.add(str); } @Override // defpackage.tbl.b public final void rV(String str) { dfs.aDB().iO(str); this.gfO.remove(str); bCn(); } }; try { return this.gfr.a(arrayList, r0); } catch (IllegalStateException e) { if (bCl()) { return this.gfr.a(arrayList, r0); } return 0; } } @Override // defpackage.fop public final void f(String str, final Cfor r6) { if (!bBK()) { a(r6, "", (tfd) null); return; } fnb rR = this.gfc.rR(str); if (rR == null) { a(r6, "", (tfd) null); return; } try { this.gfr.b(rR.id, new fov<String>() { /* class defpackage.fox.AnonymousClass49 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(String str, tfd tfd) { String str2 = str; fox fox = fox.this; Cfor r1 = r6; if (str2 == null) { str2 = ""; } fox.a(r1, str2, tfd); } }); } catch (Exception e) { a(r6, "", (tfd) null); } } @Override // defpackage.fop public final void g(final Cfor r5) { syp syp = this.gfr; AnonymousClass53 r1 = new fov<vsq>() { /* class defpackage.fox.AnonymousClass53 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(vsq vsq, tfd tfd) { vsq vsq2 = vsq; fox.this.a(r5, Boolean.valueOf(vsq2 != null && vsq2.remainingTime > 0), (tfd) null); } }; tcl tcl = new tcl(syp.uzx.wyn); tcl.a(r1); syp.fiq().b((tbd) tcl).getId(); } @Override // defpackage.fop public final void g(String str, final Cfor r7) { if (!bBK()) { a(r7, (Object) 0, (tfd) null); return; } try { syp syp = this.gfr; AnonymousClass51 r1 = new fov<Integer>() { /* class defpackage.fox.AnonymousClass51 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* synthetic */ void a(Integer num, tfd tfd) { Integer num2 = num; fox.this.a(r7, Integer.valueOf(num2 != null ? num2.intValue() : 0), tfd); } }; tcu tcu = new tcu(str); tcu.a(r1); syp.fiq().b((tbd) tcu).getId(); } catch (Exception e) { a(r7, (Object) 0, (tfd) null); } } @Override // defpackage.fop public final long h(String str, final Cfor r6) { syp syp = this.gfr; AnonymousClass52 r1 = new fov<vsn>() { /* class defpackage.fox.AnonymousClass52 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(vsn vsn, tfd tfd) { vsn vsn2 = vsn; WPSCdKey wPSCdKey = null; if (vsn2 != null) { wPSCdKey = fox.a(vsn2); } fox.this.a(r6, wPSCdKey, tfd); } }; tbm tbm = new tbm(str, syp.uzx.wyn); tbm.a(r1); return syp.fir().b(tbm).getId(); } @Override // defpackage.fop public final void i(String str, final Cfor r5) { AnonymousClass59 r0 = new fov<vtt>() { /* class defpackage.fox.AnonymousClass59 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(vtt vtt, tfd tfd) { vtt vtt2 = vtt; fox.this.a(r5, vtt2 != null ? vtt2.groupid : null, tfd); } }; syp syp = this.gfr; tbq tbq = new tbq(str); tbq.a(r0); syp.fiq().b((tbd) tbq).getId(); } @Override // defpackage.fop public final fos j(String str, String str2, String str3, String str4) { boolean z; fom fom = new fom(); try { if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str3)) { lve.ai("ERROR", TAG, "[bindingThirdParty]params errorutype=" + str + ", accessToken=" + str3); } this.gfr.b(this.gfs, str, str2, str3, str4); z = true; } catch (tfb e) { fom.ezE = e.result; z = false; } catch (tfd e2) { fom.ezE = e2.getMessage(); z = false; } fom.dDc = z; return fom.geZ; } @Override // defpackage.fop public final void j(String str, final Cfor r5) { AnonymousClass63 r0 = new fov<vvq>() { /* class defpackage.fox.AnonymousClass63 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(vvq vvq, tfd tfd) { fox.this.a(r5, fox.a(vvq), tfd); } }; syp syp = this.gfr; tci tci = new tci(str); tci.a(r0); syp.fiq().b((tbd) tci).getId(); } @Override // defpackage.fop public final void k(String str, final Cfor r5) { AnonymousClass64 r0 = new fov<String>() { /* class defpackage.fox.AnonymousClass64 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(String str, tfd tfd) { fox.this.a(r5, str, tfd); } }; syp syp = this.gfr; tcj tcj = new tcj(str); tcj.a(r0); syp.fiq().b((tbd) tcj).getId(); } @Override // defpackage.fop public final void l(String str, final Cfor r5) { AnonymousClass69 r0 = new fov<vul>() { /* class defpackage.fox.AnonymousClass69 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(vul vul, tfd tfd) { fox.this.a(r5, fox.a(vul), tfd); } }; syp syp = this.gfr; tcq tcq = new tcq(str); tcq.a(r0); syp.fiq().b((tbd) tcq).getId(); } @Override // defpackage.fop public final void li(boolean z) { vqc.fUp().wyt = z; } @Override // defpackage.fop public final void lj(boolean z) { this.gfr.lj(z); } public final void ln(boolean z) { foq foq = this.gfq.get(eip.b.HOME.name()); if (foq != null) { try { foq.lh(true); } catch (RemoteException e) { } } } @Override // defpackage.fop public final void m(String str, final Cfor r5) { if (!bBK()) { a(r5, "", (tfd) null); return; } try { this.gfr.b(str, new fov<String>() { /* class defpackage.fox.AnonymousClass50 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(String str, tfd tfd) { String str2 = str; fox fox = fox.this; Cfor r1 = r5; if (str2 == null) { str2 = ""; } fox.a(r1, str2, tfd); } }); } catch (Exception e) { a(r5, "", (tfd) null); } } @Override // defpackage.fop public final boolean mO(String str) { fnb rR = this.gfc.rR(str); if (rR != null) { return rR.gaN; } return false; } @Override // defpackage.fop public final void mS(String str) { this.gfB.remove(this.gfc.rS(str)); } @Override // defpackage.fop public final String mV(String str) { File a2 = syp.a(str, this.gfs); if (a2 != null) { return a2.getAbsolutePath(); } return null; } @Override // defpackage.fop public final long n(String str, final Cfor r5) { AnonymousClass60 r0 = new fov<String>() { /* class defpackage.fox.AnonymousClass60 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(String str, tfd tfd) { String str2 = str; super.a(str2, tfd); fox.this.a(r5, str2, tfd); } }; syp syp = this.gfr; tco tco = new tco(str); tco.a(r0); return syp.fiq().b((tbd) tco).getId(); } public final void o(String str, final Cfor r6) { fnb rR = this.gfc.rR(str); if (rR != null && rR.gaN) { fou fou = this.gfc; if (rR != null) { synchronized (fou.mLock) { fou.gfi.remove(rR); fou.atJ(); } } syp syp = this.gfr; String str2 = rR.id; AnonymousClass31 r2 = new fov<Void>() { /* class defpackage.fox.AnonymousClass31 */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, tfd] */ @Override // defpackage.taq, defpackage.fov public final /* bridge */ /* synthetic */ void a(Void r3, tfd tfd) { fox.this.a(r6, r3, tfd); } }; tbt tbt = new tbt(str2); tbt.a(r2); syp.fiq().b((tbd) tbt).getId(); } } /* JADX WARNING: Removed duplicated region for block: B:13:0x001e */ /* JADX WARNING: Removed duplicated region for block: B:15:0x002c */ @Override // defpackage.fop public final fos rA(String str) { tfb e; boolean z; tfd e2; fom fom = new fom(); try { vsr TB = this.gfr.TB(str); z = TB == null || TB.wzS == null; if (z) { try { fom.ezE = "empty"; } catch (tfb e3) { e = e3; fom.ezE = e.result; if (this.gfs != null) { } fom.dDc = z && this.gfs != null; return fom.geZ; } catch (tfd e4) { e2 = e4; fom.ezE = e2.getMessage(); if (this.gfs != null) { } fom.dDc = z && this.gfs != null; return fom.geZ; } } else { this.gfs = TB.wzS; } } catch (tfb e5) { e = e5; z = true; fom.ezE = e.result; if (this.gfs != null) { } fom.dDc = z && this.gfs != null; return fom.geZ; } catch (tfd e6) { e2 = e6; z = true; fom.ezE = e2.getMessage(); if (this.gfs != null) { } fom.dDc = z && this.gfs != null; return fom.geZ; } if (this.gfs != null) { bCc(); bBX(); bCa(); bCd(); } fom.dDc = z && this.gfs != null; return fom.geZ; } /* JADX WARNING: Removed duplicated region for block: B:11:0x001a */ /* JADX WARNING: Removed duplicated region for block: B:13:0x0028 */ /* JADX WARNING: Removed duplicated region for block: B:23:0x0043 */ @Override // defpackage.fop public final fos rB(String str) { tfb e; boolean z; tfd e2; fom fom = new fom(); try { vvb TC = this.gfr.TC(str); z = TC == null; if (z) { try { fom.ezE = "empty"; } catch (tfb e3) { e = e3; fom.ezE = e.result; if (this.gfs != null) { } fom.dDc = !z; return fom.geZ; } catch (tfd e4) { e2 = e4; fom.ezE = e2.getMessage(); if (this.gfs != null) { } fom.dDc = !z; return fom.geZ; } } else { this.gfs = TC; } } catch (tfb e5) { e = e5; z = true; fom.ezE = e.result; if (this.gfs != null) { } fom.dDc = !z; return fom.geZ; } catch (tfd e6) { e2 = e6; z = true; fom.ezE = e2.getMessage(); if (this.gfs != null) { } fom.dDc = !z; return fom.geZ; } if (this.gfs != null) { bCc(); bBX(); bCa(); bCd(); } fom.dDc = !z; return fom.geZ; } @Override // defpackage.fop public final void rC(String str) { this.gfc.rP(str); } @Override // defpackage.fop public final String rD(String str) { return this.gfr.rD(str); } @Override // defpackage.fop public final String rE(String str) { szp f; fnb rR = this.gfc.rR(str); String str2 = rR == null ? null : rR.id; if (str2 != null && !tgd.Um(str2)) { return str2; } syp syp = this.gfr; String anA = syp.anA(); vvb vvb = syp.fiq().gfs; String format = String.format(Locale.US, "%s/%s/%s/", sys.TI(anA).getAbsolutePath(), vvb.userId, "f"); String substring = str.startsWith(format) ? str.substring(format.length(), str.lastIndexOf(47)) : null; if (substring == null || (f = syz.f(anA, vvb, substring)) == null) { return null; } return syp.rJ(f.uzS); } @Override // defpackage.fop public final String rF(String str) throws RemoteException { szp aB; syp syp = this.gfr; String str2 = syp.uzw; vvb vvb = syp.gfs; String TN = syv.TN(str); szg szg = new szg(syo.fio()); if (TN == null || (aB = szg.aB(str2, vvb.userId, TN)) == null) { return null; } return aB.dCT; } @Override // defpackage.fop public final boolean rG(String str) { return this.gfr.rG(str); } @Override // defpackage.fop public final long rH(String str) { return this.gfr.rH(str); } @Override // defpackage.fop public final long rI(String str) { tau TX = this.gfr.fiq().uBy.TX(str); if (TX != null) { return TX.getId(); } return 0; } @Override // defpackage.fop public final String rJ(String str) { return this.gfr.rJ(str); } @Override // defpackage.fop public final String rK(String str) { try { return this.gfr.rK(str); } catch (tfd e) { try { b(e); } catch (Exception e2) { e2.printStackTrace(); } return null; } } @Override // defpackage.fop public final void rL(String str) { if (!rO(str)) { syk.fil().uzm.add(str); this.gfr.fiq().uBy.TW(rE(str)); } } /* JADX WARNING: Removed duplicated region for block: B:18:0x003a */ /* JADX WARNING: Removed duplicated region for block: B:9:0x001e */ @Override // defpackage.fop public final fos rN(String str) { tfd e; String str2; tfb e2; fom fom = new fom(); try { str2 = this.gfr.gw("", str); try { if (TextUtils.isEmpty(str2)) { fom.ezE = "empty"; } } catch (tfb e3) { e2 = e3; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str2); fom.geY = str2; return fom.geZ; } catch (tfd e4) { e = e4; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str2); fom.geY = str2; return fom.geZ; } } catch (tfb e5) { str2 = null; e2 = e5; fom.ezE = e2.result; fom.dDc = !TextUtils.isEmpty(str2); fom.geY = str2; return fom.geZ; } catch (tfd e6) { str2 = null; e = e6; fom.ezE = e.getMessage(); fom.dDc = !TextUtils.isEmpty(str2); fom.geY = str2; return fom.geZ; } fom.dDc = !TextUtils.isEmpty(str2); fom.geY = str2; return fom.geZ; } @Override // defpackage.fop public final boolean rO(String str) { return syk.fil().uzm.contains(str); } public final String rT(String str) { if (lwv.isEmpty(str)) { return null; } return this.mContext.getString(R.string.home_clouddocs_events_share) + str; } @Override // defpackage.fop public final void rv(String str) { if (!TextUtils.isEmpty(str)) { try { this.gfs = this.gfr.Tz(str); ebh.setStatus(1); } catch (tfd e) { lve.a("ERROR", TAG, "getSession", e); } bCc(); bBX(); bCa(); } bCd(); } @Override // defpackage.fop public final String rw(String str) { bBX(); try { String rw = this.gfr.rw(str); return Qing3rdLoginConstants.CHINANET_UTYPE.equals(str) ? rw + "&wap=2" : rw; } catch (Exception e) { return null; } } @Override // defpackage.fop public final void rx(String str) { syk.fil().uzm.remove(str); } /* JADX WARNING: Removed duplicated region for block: B:29:0x004f */ @Override // defpackage.fop public final fos ry(String str) { boolean z; tfd e; tfb e2; boolean z2 = true; fom fom = new fom(); try { vsk TA = this.gfr.TA(str); z = TA == null || ((TA.wzz == null || TA.wzz.isEmpty()) && !TA.fUR()); if (z) { try { fom.ezE = "empty"; } catch (tfb e3) { e2 = e3; fom.ezE = e2.result; if (z) { } fom.dDc = z2; return fom.geZ; } catch (tfd e4) { e = e4; fom.ezE = e.getMessage(); if (z) { } fom.dDc = z2; return fom.geZ; } } else { try { fom.geY = TA.fUQ().toString(); } catch (JSONException e5) { z = true; } } } catch (tfb e6) { e2 = e6; z = true; fom.ezE = e2.result; if (z) { } fom.dDc = z2; return fom.geZ; } catch (tfd e7) { e = e7; z = true; fom.ezE = e.getMessage(); if (z) { } fom.dDc = z2; return fom.geZ; } if (z) { z2 = false; } fom.dDc = z2; return fom.geZ; } @Override // defpackage.fop public final fos rz(String str) { fom fom = new fom(); boolean z = false; try { syp syp = this.gfr; try { tfv.a aVar = new tfv.a("sms"); syp.uzx.wyp.hg(str, "verify"); aVar.fjx(); z = true; fom.dDc = z; return fom.geZ; } catch (vrz e) { throw syp.c(e); } } catch (tfb e2) { fom.ezE = e2.result; } catch (tfd e3) { fom.ezE = e3.getMessage(); } } public final void stop() { this.gfr.stop(); } @Override // defpackage.fop public final void wg(int i) { fza.bJK().a((fyx) fva.CLOUD_QING_ROAMING_NETWORK_TYPE, i); bCf(); } }